Some fixes

This commit is contained in:
root 2021-08-29 18:19:43 +02:00
parent c566d3e9f3
commit f3fca52be4
2 changed files with 3 additions and 3 deletions

4
bot.js
View File

@ -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;

View File

@ -1 +1 @@
{"word": "butt","timer":120,"chance":20,"ignoredUsers":["StreamElements","Nightbot"]}
{"word":"butt","chance":20,"limit":10,"ignoredUsers":["StreamElements","Nightbot"]}