mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-20 16:25:03 +00:00
BugFix Correct NaN check in setcounter
Use isNaN check so 0 can be accepted but still restrict to only numbers
This commit is contained in:
parent
c26ab2977f
commit
694d14d43a
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ export const SetCounterCmd = guildCommand<CountersPluginType>()({
|
|||
}
|
||||
|
||||
const potentialValue = parseInt(reply.content, 10);
|
||||
if (!potentialValue) {
|
||||
if (isNaN(potentialValue)) {
|
||||
sendErrorMessage(pluginData, message.channel, "Not a number, cancelling");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue