This commit is contained in:
Sarimoko 2022-02-14 16:14:17 -08:00
parent dc627597e0
commit e7e5e921b6
1 changed files with 9 additions and 3 deletions

View File

@ -67,7 +67,7 @@ function getRandomChatter(channelName, opts = {}) {
client.on('message', (channel, tags, message, self) => { client.on('message', (channel, tags, message, self) => {
if(self) return; if(self) return;
if(tags.username === 'nightbot') return; if(tags.username === 'nightbot') return;
//if(tags.username === 'streamelements') return; if(tags.username === 'streamelements') return;
if(tags.username === 'streamlabs') return; if(tags.username === 'streamlabs') return;
const badges = tags.badges || {}; // Scan Badges const badges = tags.badges || {}; // Scan Badges
const isBroadcaster = badges.broadcaster; // Define Streamer const isBroadcaster = badges.broadcaster; // Define Streamer
@ -97,8 +97,14 @@ client.on('message', (channel, tags, message, self) => {
}) })
.catch(err => console.log('[ERR]', err)); .catch(err => console.log('[ERR]', err));
} }
if(command === 'hiboto') { // CMD | Dice Roll
client.say(channel, `!hichatbots`) 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 // SUB Commands