From 5ab4201bfeb2fc4a7800f33e649900bf3d7d100e Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Fri, 11 Feb 2022 08:38:05 +0000 Subject: [PATCH] Update 'node/boto.js' --- node/boto.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/node/boto.js b/node/boto.js index d0f42a0..43b1f47 100644 --- a/node/boto.js +++ b/node/boto.js @@ -41,11 +41,23 @@ client.on('message', (channel, tags, message, self) => { const isModUp = isBroadcaster || isMod; const botUserState = client.userstate[channel]; const amMod = botUserState !== undefined && botUserState.mod === true; + const isSub = badges.subscriber || badges.founder; + // !MODS if(isModUp && message.toLowerCase().startsWith('!so')) { console.log('MOD COMMAND | so | shoutout'); client.say(channel, `bloop`); } + + // !SUBS + if(isSub) { + console.log(tags.username, 'is a subscriber'); + } + + // General Commands if(message.toLowerCase().startsWith('!mod')) { console.log('LOG: Non-Mod command used!'); } + }); + + \ No newline at end of file