3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Fix 0 not being accepted in SetCounterCmd (#186)

This commit is contained in:
Usoka 2021-04-29 07:03:26 +12:00 committed by GitHub
parent 25ff030dac
commit 67f6ddee16

View file

@ -111,7 +111,7 @@ export const SetCounterCmd = guildCommand<CountersPluginType>()({
}
const potentialValue = parseInt(reply.content, 10);
if (!potentialValue) {
if (Number.isNaN(potentialValue)) {
sendErrorMessage(pluginData, message.channel, "Not a number, cancelling");
return;
}