hotfix/critical exists handle NaN

This commit is contained in:
SowinskiBraeden committed 2023-11-02 17:38:24 -07:00
1 parent f4e13cbff2
commit f95dbcd134
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayzr-bot",
"version": "12.1.7",
"version": "12.1.8",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js",
"nodemonConfig": {
+1 -1
View File
@@ -346,7 +346,7 @@ class DayzRBot extends Client {
}
}
exists(n) { return null != n && undefined != n && "" != n && !isNaN(n) }
exists(n) { return typeof(n) == 'number' ? !isNaN(n) : null != n && undefined != n && "" != n }
secondsToDhms(seconds) {
seconds = Number(seconds);