diff --git a/node/boto.js b/node/boto.js index 76b556b..9be848e 100644 --- a/node/boto.js +++ b/node/boto.js @@ -67,7 +67,7 @@ function getRandomChatter(channelName, opts = {}) { client.on('message', (channel, tags, message, self) => { if(self) return; if(tags.username === 'nightbot') return; - //if(tags.username === 'streamelements') return; + if(tags.username === 'streamelements') return; if(tags.username === 'streamlabs') return; const badges = tags.badges || {}; // Scan Badges const isBroadcaster = badges.broadcaster; // Define Streamer @@ -97,8 +97,14 @@ client.on('message', (channel, tags, message, self) => { }) .catch(err => console.log('[ERR]', err)); } - if(command === 'hiboto') { - client.say(channel, `!hichatbots`) + // CMD | Dice Roll + if(command === 'dice' || + command === 'roll') { + const result = Math.floor(Math.random() * 6) + 1; + client.say(channel, `/me RNGesus has rolled @${tags.username} a ${result}!`); + } + if(command === 'test') { + client.say(channel, `what if we output the whole message? Zap! Output: `+ message) } // ================================ // SUB Commands