Update 'node/boto.js'
This commit is contained in:
parent
62ee8b6da6
commit
7d0d523ff6
11
node/boto.js
11
node/boto.js
|
@ -26,17 +26,6 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
const isModUp = isBroadcaster || isMod;
|
const isModUp = isBroadcaster || isMod;
|
||||||
});
|
});
|
||||||
|
|
||||||
// let isMod = user.mod || user['user-type'] === 'mod';
|
|
||||||
// let isBroadcaster = channel.slice(1) === user.username;
|
|
||||||
// let isModUp = isMod || isBroadcaster;
|
|
||||||
client.on('message', (channel, tags, message, self) => {
|
|
||||||
if(self) return;
|
|
||||||
const badges = tags.badges || {};
|
|
||||||
const isBroadcaster = badges.broadcaster;
|
|
||||||
const isMod = badges.moderator;
|
|
||||||
const isModUp = isBroadcaster || isMod;
|
|
||||||
});
|
|
||||||
|
|
||||||
// START of REACTIVE
|
// START of REACTIVE
|
||||||
// ==================================
|
// ==================================
|
||||||
client.on("anongiftpaidupgrade", (channel, username, userstate) => {
|
client.on("anongiftpaidupgrade", (channel, username, userstate) => {
|
||||||
|
|
Loading…
Reference in New Issue