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