chatbot loop

This commit is contained in:
Sarimoko 2022-02-14 16:08:48 -08:00
parent 1df3e5272e
commit 9386faf1fa
1 changed files with 5 additions and 0 deletions

View File

@ -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
@ -95,6 +97,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
// ================================ // ================================