Fixed issue #2

This commit is contained in:
root 2021-09-03 15:36:07 +02:00
parent cacb2ad773
commit e6260c08c5

2
bot.js
View File

@ -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']) {