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.");} } }