mod n sub
This commit is contained in:
parent
0603343fd5
commit
7ae3e00096
75
node/boto.js
75
node/boto.js
|
@ -61,8 +61,9 @@ function getRandomChatter(channelName, opts = {}) {
|
||||||
null :
|
null :
|
||||||
chatters[Math.floor(Math.random() * chatters.length)];
|
chatters[Math.floor(Math.random() * chatters.length)];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// ================================
|
||||||
|
// CHAT SCAN | START
|
||||||
client.on('message', (channel, tags, message, self) => {
|
client.on('message', (channel, tags, message, self) => {
|
||||||
if(self) return;
|
if(self) return;
|
||||||
const badges = tags.badges || {}; // Scan Badges
|
const badges = tags.badges || {}; // Scan Badges
|
||||||
|
@ -76,6 +77,9 @@ 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
|
||||||
|
// ================================
|
||||||
|
// Chatbot Commands
|
||||||
|
// ================================
|
||||||
if(command === 'rnguser') {
|
if(command === 'rnguser') {
|
||||||
// Get a random user but skip the user requesting a random user
|
// Get a random user but skip the user requesting a random user
|
||||||
getRandomChatter(channel, { skipList: [ tags.username ] })
|
getRandomChatter(channel, { skipList: [ tags.username ] })
|
||||||
|
@ -90,11 +94,76 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
})
|
})
|
||||||
.catch(err => console.log('[ERR]', err));
|
.catch(err => console.log('[ERR]', err));
|
||||||
}
|
}
|
||||||
|
// ================================
|
||||||
|
// SUB Commands
|
||||||
|
// ================================
|
||||||
|
if(isSub) {
|
||||||
|
// FX | K A P P A G E N S
|
||||||
|
if(command === 'bg' ||
|
||||||
|
command === 'notgg') {
|
||||||
|
client.say(channel, `!kappagen sarimoDEAD sarimoGAME Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'clap' ||
|
||||||
|
command === 'claps') {
|
||||||
|
client.say(channel, `!kappagen sarimoDEAD sarimoGAME Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'hair' ||
|
||||||
|
command === 'hairflip') {
|
||||||
|
client.say(channel, `!kappagen sarimoHAIR sarimoBANG Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'hi' ||
|
||||||
|
command === 'hello') {
|
||||||
|
client.say(channel, `!kappagen sarimoKO sarimoNERD Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'hype' ||
|
||||||
|
command === 'train') {
|
||||||
|
client.say(channel, `!kappagen sarimoHYPE sarimoBITS Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'salt' ||
|
||||||
|
command === 'shoutout') {
|
||||||
|
client.say(channel, `!kappagen sarimoSALT sarimoRAGE Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'soup' ||
|
||||||
|
command === 'sup') {
|
||||||
|
client.say(channel, `!kappagen sarimoSOUP sarimoTRIP `);
|
||||||
|
client.say(channel, `/me Yo @${tags.username}, how goes it? Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
} // SUB | END
|
||||||
|
// ================================
|
||||||
|
// MOD Commands
|
||||||
|
// ================================
|
||||||
|
if(isModUp) { // MOD Start
|
||||||
|
|
||||||
|
// Shoutout
|
||||||
|
if(command === 'so' ||
|
||||||
|
command === 'shoutout') {
|
||||||
|
client.say(channel, `/me Roll the clip! Smash @${args.join(' ')}'s follow button at: https://twitch.tv/${args.join(' ')} Bleep-Bloop!`);
|
||||||
|
}
|
||||||
|
if(command === 'default' ||
|
||||||
|
command === 'sariboto') {
|
||||||
|
client.say(channel, `/color BlueViolet`);
|
||||||
|
client.say(channel, `/me I've reconfigured myself to @Sarimoko's preferences! Bleep-Bloop!`);
|
||||||
|
client.say(channel, `/emoteonlyoff `);
|
||||||
|
client.say(channel, `/followersoff `);
|
||||||
|
client.say(channel, `/slowoff `);
|
||||||
|
client.say(channel, `/subscribersoff `);
|
||||||
|
}
|
||||||
|
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`);
|
||||||
|
}
|
||||||
|
} // MOD | END
|
||||||
});
|
});
|
||||||
|
// CHAT SCAN | END
|
||||||
|
// ================================
|
||||||
|
|
||||||
|
// ================================
|
||||||
// ALERTS START
|
// ALERTS START
|
||||||
// ================================
|
// ================================
|
||||||
// --------------------------------
|
|
||||||
// client.on("action", (channel, userstate, message, self) => {
|
// client.on("action", (channel, userstate, message, self) => {
|
||||||
// // Don't listen to my own messages..
|
// // Don't listen to my own messages..
|
||||||
// if (self) return;
|
// if (self) return;
|
||||||
|
|
Loading…
Reference in New Issue