chatbot loop
This commit is contained in:
parent
1df3e5272e
commit
9386faf1fa
|
@ -66,7 +66,9 @@ function getRandomChatter(channelName, opts = {}) {
|
||||||
// CHAT SCAN | START
|
// CHAT SCAN | START
|
||||||
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 === 'streamelements') return;
|
if(tags.username === 'streamelements') 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
|
||||||
const isMod = badges.moderator; // Define Mod
|
const isMod = badges.moderator; // Define Mod
|
||||||
|
@ -94,6 +96,9 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => console.log('[ERR]', err));
|
.catch(err => console.log('[ERR]', err));
|
||||||
|
}
|
||||||
|
if(command === 'hiboto') {
|
||||||
|
client.say(channel, `!hichatbots`)
|
||||||
}
|
}
|
||||||
// ================================
|
// ================================
|
||||||
// SUB Commands
|
// SUB Commands
|
||||||
|
|
Loading…
Reference in New Issue