Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-12 05:14:10 +00:00
parent 6027768239
commit 1900a7d547
1 changed files with 24 additions and 5 deletions

View File

@ -34,10 +34,29 @@ 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
if(isModUp) { // !MODS | START
console.log('Captians Log: MOD used a command...'); // Log for ALL commands Mods use Mod/Sub/General
else if(isSub) { // !SUBS | START if(command === 'so' ||
} command === 'shoutout') {
else(isModUp) { // !MODS | START client.say(channel, `/me Smash @${args.join(' ')}'s follow button at: https://twitch.tv/${args.join(' ')}`);
}
else if(command === 'mute' ||
command === 'slap' ||
command === 'timeout' ||
command === 'warn') {
client.say(channel, `/timeout ${args.join(' ')} 33`);
client.say(channel, `/me Mods cast a 33sec Timeout Curse on @${args.join(' ')}, resistence to Bans is decreased!`);
client.say(channel, `!kappagen sarimoRAGE sarimoNERD`);
}
} // !MODS | END } // !MODS | END
if(isSub) { // !SUBS | START
console.log('Captians Log: SUB used a command...'); // Log
console.log(tags.username, 'is a subscriber');
} // !SUBS | END
if { // !ALL | START
console.log('LOG: Non-Mod command used!');
} // !ALL | END
}); // SCAN MSG | END }); // SCAN MSG | END