From e6260c08c5ef89963921ae55ffe5c57d5678ecc3 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Sep 2021 15:36:07 +0200 Subject: [PATCH] Fixed issue #2 --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) {