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