test cmd
This commit is contained in:
parent
dc627597e0
commit
e7e5e921b6
12
node/boto.js
12
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
|
||||
|
|
Loading…
Reference in New Issue