viewing paste Unknown #26486 | Javascript

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
client.on('chat', function(channel, user, message, self){
    if(message === "!minuette"){//Blank or Viewer command
        client.say("thederpysupport", "I am a Twitch Chat Bot.");
    }
    if(message === "!discord"){
        if(user["user-type"] === "mod" || user.username === channel.replace("#", "")){ //Checking for Mod or Caster
        client.say("thederpysupport", "You can join the Derpy Gaming Network discord by clicking this link: https://discord.gg/0nCaX7zRQ4pOgcXI")};
    }
    if(message === "!stop"){
        if (user['display-name'] === "TheDerpySupport"){//checking direct username when issuing the command
            client.action("thederpysupport", "has disconnected.");
            client.disconnect();
        } else { client.say("thederpysupport", "Sorry " + user['display-name'] + " only Derpy can shut me down.");}
    }
}
Viewed 622 times, submitted by Guest.