diff --git a/node/autoban.js b/node/autoban.js index cb47a30..f7c8a03 100644 --- a/node/autoban.js +++ b/node/autoban.js @@ -38,28 +38,14 @@ client.on('message', (channel, tags, message, self) => { if(self || !message.startsWith('!')) return; // Command Parser const args = message.slice(1).split(' '); const command = args.shift().toLowerCase(); // !COMMAND => command - // Define Ban & Unban Functions - const cmd_ban = console.log(`Banning | @`.black.bgBrightRed+ botlist.black.bgYellow, `from channel #`black.bgBrightRed+ channel); && - client.say(channel, `/ban `+ botlist); - const cmd_unban = client.say(); - // Mods - if(isMod) { - if(command === 'banbots') { - - } - if(command === 'unbanbots') { - - } - } // Mods + Streamer if(isModUp) { - if(command === 'banbots') {} - if(command === 'unbanbots') {} - } - // Streamer - if(isBroadcaster) { - if(command === 'banbots') {} - if(command === 'unbanbots') {} + if(command === 'banbots') { + client.say(channel, `/ban `+ botlist); + } + if(command === 'unbanbots') { + client.say(channel, `/ban `+ botlist); + } } }); console.log(process.env.API_HOST); \ No newline at end of file