diff --git a/bot.js b/bot.js index cef5bce..7dc25ff 100644 --- a/bot.js +++ b/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']) {