Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-12 18:33:43 +00:00
parent 5e452ee6c6
commit 59c2711032
1 changed files with 24 additions and 9 deletions

View File

@ -35,13 +35,26 @@ client.on('message', (channel, tags, message, self) => {
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
// CHAT COMMANDS | END // CHAT COMMANDS | Start
// DATA / INFO
// CORD
if(command === 'cord' || if(command === 'cord' ||
command === 'discord') { command === 'discord') {
client.say(channel, `/me The Cord by Sarimoko is joinable & sharable at: https://cord.sarimoko.com/`); client.say(channel, `/me The Cord by Sarimoko is joinable & sharable at: https://cord.sarimoko.com/`);
} }
// CHAT COMMANDS | END if(command === 'dice' ||
command === 'roll') {
const result = Math.floor(Math.random() * 6) + 1;
client.say(channel, `@${tags.username}, You rolled a ${result}.`);
}
// DOJO
if(command === 'dojo' ||
command === 'lessons') {
client.say(channel, `/me The Dojo by Sarimoko a collection of coarses, guides, lessons, & tutorials available at: https://dojo.sarimoko.com/`);
}
// CHAT COMMANDS | End
if(isSub) { // SUB | Start if(isSub) { // SUB | Start
// HYPE // HYPE
@ -92,18 +105,20 @@ client.on('message', (channel, tags, message, self) => {
client.say(channel, `/slowoff `); client.say(channel, `/slowoff `);
client.say(channel, `/subscribersoff `); client.say(channel, `/subscribersoff `);
} }
// Run Ads
if(command === 'ad' || if(command === 'ad' ||
command === 'ads' || command === 'ads' ||
command === 'dab30' || command === 'dab30' ||
command === 'intermission') { command === 'intermission') {
client.say(channel, `Bleep! Bloop! Sub to bypass ads! `); client.say(channel, `Bleep! Bloop! Sub to bypass ads! `);
client.commercial("channel", 30) client.commercial("channel", 30)
.then((data) => { .then((data) => {
// data returns [channel, seconds] // data returns [channel, seconds]
}).catch((err) => { }).catch((err) => {
// //
}); });
} }
} // MOD | END } // MOD | END