From f3fca52be4b2242c2d8c6f9da4173e9190e90a72 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Aug 2021 18:19:43 +0200 Subject: [PATCH] Some fixes --- bot.js | 4 ++-- buttsbot.config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index af4200c..d187080 100644 --- a/bot.js +++ b/bot.js @@ -49,14 +49,14 @@ function onMessageHandler (channel, userstate, message, self) { switch (action) { case "config": - client.say(channel, "Chance: " + config.chance + "% - Limit: " + config.limit + " - Ignored Users: " + config.ignoredUsers.join(', ')); + client.say(channel, "Chance: " + config.chance + "% - Limit: " + config.limit + " - Word: " + config.word + " - Ignored Users: " + config.ignoredUsers.join(', ')); break; case "word": config.word = value; fs.writeFileSync('buttsbot.config', JSON.stringify(config)); client.say(channel, "Word set to " + value); break; - case "timer": + case "chance": if (isNumeric(value)) { if (value > 100) value = 100; diff --git a/buttsbot.config b/buttsbot.config index b767654..7ad848c 100644 --- a/buttsbot.config +++ b/buttsbot.config @@ -1 +1 @@ -{"word": "butt","timer":120,"chance":20,"ignoredUsers":["StreamElements","Nightbot"]} \ No newline at end of file +{"word":"butt","chance":20,"limit":10,"ignoredUsers":["StreamElements","Nightbot"]} \ No newline at end of file