From 273537f170835291abbef0f3414d40b2e7539f3a Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Wed, 23 Feb 2022 07:06:00 +0000 Subject: [PATCH] Update 'node/autoban.js' --- node/autoban.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }