From 59c27110324f4a5ed7e1e0bc8d978645aeac9ab9 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Sat, 12 Feb 2022 18:33:43 +0000 Subject: [PATCH] Update 'node/boto.js' --- node/boto.js | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/node/boto.js b/node/boto.js index 8f01477..3c3f751 100644 --- a/node/boto.js +++ b/node/boto.js @@ -35,13 +35,26 @@ client.on('message', (channel, tags, message, self) => { const args = message.slice(1).split(' '); const command = args.shift().toLowerCase(); // !COMMAND => command - // CHAT COMMANDS | END - // DATA / INFO + // CHAT COMMANDS | Start + + // CORD if(command === 'cord' || command === 'discord') { 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 // HYPE @@ -92,18 +105,20 @@ client.on('message', (channel, tags, message, self) => { client.say(channel, `/slowoff `); client.say(channel, `/subscribersoff `); } + + // Run Ads if(command === 'ad' || command === 'ads' || command === 'dab30' || command === 'intermission') { - client.say(channel, `Bleep! Bloop! Sub to bypass ads! `); - client.commercial("channel", 30) - .then((data) => { + client.say(channel, `Bleep! Bloop! Sub to bypass ads! `); + client.commercial("channel", 30) + .then((data) => { // data returns [channel, seconds] - }).catch((err) => { + }).catch((err) => { // - }); - } + }); + } } // MOD | END