Update 'node/autoban.js'

This commit is contained in:
Sarimoko 2022-02-23 06:46:25 +00:00
parent 4e4f269bb9
commit 91e10fe627
1 changed files with 6 additions and 20 deletions

View File

@ -38,28 +38,14 @@ client.on('message', (channel, tags, message, self) => {
if(self || !message.startsWith('!')) return; // Command Parser if(self || !message.startsWith('!')) return; // Command Parser
const args = message.slice(1).split(' '); const args = message.slice(1).split(' ');
const command = args.shift().toLowerCase(); // !COMMAND => command 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 // Mods + Streamer
if(isModUp) { if(isModUp) {
if(command === 'banbots') {} if(command === 'banbots') {
if(command === 'unbanbots') {} client.say(channel, `/ban `+ botlist);
} }
// Streamer if(command === 'unbanbots') {
if(isBroadcaster) { client.say(channel, `/ban `+ botlist);
if(command === 'banbots') {} }
if(command === 'unbanbots') {}
} }
}); });
console.log(process.env.API_HOST); console.log(process.env.API_HOST);