3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +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 00f368d62b
commit 6b9131c353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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