Fixed issue #2
This commit is contained in:
parent
cacb2ad773
commit
e6260c08c5
2
bot.js
2
bot.js
|
|
@ -78,7 +78,7 @@ function onMessageHandler (channel, userstate, message, self) {
|
|||
} else {
|
||||
if (self) return;
|
||||
|
||||
let config = (messageChannel in configurations) ? configurations[messageChannel] : defaultConfig;
|
||||
let config = (channel in configurations) ? configurations[channel] : defaultConfig;
|
||||
|
||||
if (message.startsWith("!buttsbot")) {
|
||||
if (userstate['room-id'] === userstate['user-id'] || userstate['mod']) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user