diff --git a/node/autoban.js b/node/autoban.js index 18e0521..9691a2a 100644 --- a/node/autoban.js +++ b/node/autoban.js @@ -23,10 +23,9 @@ const client = new tmi.Client({ channels: [ process.env.TTV_STREAMER_CHANNEL ] }); -console.log(`Loading... | TTV IRC Login`.black.bgGreen); +console.log(`Loading... | Chatbot`.black.bgGreen); client.connect(); -console.log(`Loading... | Chatbot`.black.bgGreen); client.on('message', (channel, tags, message, self) => { if(botlist) return; const badges = tags.badges || {}; // Scan Badges @@ -40,6 +39,9 @@ client.on('message', (channel, tags, message, self) => { const command = args.shift().toLowerCase(); // !COMMAND => command // Mods + Streamer if(isModUp) { + if(command === 'test') { + client.say(channel, `test `); + } if(command === 'banbots') { client.say(channel, `/ban `+ botlist); }