Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-11 06:33:59 +00:00
parent 7ad6682f6a
commit bae8c35f60
1 changed files with 8 additions and 8 deletions

View File

@ -26,9 +26,9 @@ client.on('message', (channel, tags, message, self) => {
const isModUp = isBroadcaster || isMod;
});
let isMod = user.mod || user['user-type'] === 'mod';
let isBroadcaster = channel.slice(1) === user.username;
let isModUp = isMod || isBroadcaster;
// let isMod = user.mod || user['user-type'] === 'mod';
// let isBroadcaster = channel.slice(1) === user.username;
// let isModUp = isMod || isBroadcaster;
// START of REACTIVE
// ==================================
@ -120,11 +120,11 @@ client.on('message', (channel, tags, message, self) => {
//let isMod = user.mod || user['user-type'] === 'mod';
//let isBroadcaster = channel.slice(1) === user.username;
//let isModUp = isMod || isBroadcaster;
if(isModUp) {
if(command === 'mod') {
client.say(channel, `Mod test command`);
}
}
//if(isModUp) {
// if(command === 'mod') {
// client.say(channel, `Mod test command`);
// }
//}
// I N F O
// ==================================