From 55c771d0bb536fc8ba63927b1c5d8380e017dbc7 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Thu, 10 Feb 2022 02:08:32 +0000 Subject: [PATCH] Update 'node/boto.js' --- node/boto.js | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/node/boto.js b/node/boto.js index c537142..293e7b4 100644 --- a/node/boto.js +++ b/node/boto.js @@ -44,19 +44,37 @@ client.on('message', (channel, tags, message, self) => { const botUserState = client.userstate[channel]; const amMod = botUserState !== undefined && botUserState.mod === true; - // B E T A + // M O D S Q U A D + // ---------------------------------- + let isMod = user.mod || user['user-type'] === 'mod'; + let isBroadcaster = channel.slice(1) === user.username; + let isModUp = isMod || isBroadcaster; + if(isModUp) { + // Something for moderators or higher + } + + // I N F O // ================================== + // The Cord + // ---------------------------------- + if(command === 'cord' || command === 'discord') { + client.say(channel, `/w The Cord by Sarimoko is joinable & sharable at: https://cord.sarimoko.com/`); + } // The Boto // ---------------------------------- - if(command === 'boto' || command === 'sariboto' || command === 'sari-boto') { + else if(command === 'boto' || command === 'sariboto' || command === 'sari-boto') { client.say(channel, `/me Bleep! Bloop! Twitch IRC connected... LETS PARTY!!!`); client.say(channel, `!kappagen imGlitch EarthDay imGlitch EarthDay imGlitch`); } + // The Color + // ---------------------------------- + else if(command === 'color') { + client.say(channel, `/color ${args.join(' ')}`); + } // The Echo // ---------------------------------- else if(command === 'echo') { - client.say(channel, `/me Off in the distance @${tags.username} screams...`); - client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`); + client.say(channel, `/me @${tags.username} says ${args.join(' ')}`); } // T H E S H O W @@ -110,10 +128,10 @@ client.on('message', (channel, tags, message, self) => { // The 2Pac Timezone // ---------------------------------- - else if(command === '2pac' || command === 'pst' || command === 'timezone') { - client.say(channel, `/me Off in the distance @${tags.username} screams...`); - client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`); - } + //else if(command === '2pac' || command === 'pst' || command === 'timezone') { + // client.say(channel, `/me Off in the distance @${tags.username} screams...`); + // client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`); + //}