Another small fix for the pity system

This commit is contained in:
root 2021-09-03 21:04:52 +02:00
parent 6edfdc59f6
commit 0b3a4f4ad0

2
bot.js
View File

@ -122,6 +122,8 @@ function onMessageHandler (channel, userstate, message, self) {
break;
case "pity":
if (isNumeric(value)) {
if (value < 0)
value = 0;
config.pity = parseInt(value);
configurations[channel] = config;
fs.writeFileSync('buttsbot.config', JSON.stringify(configurations));