commandCoolDown.js error


#1

Please fill out the following so that we might better serve your request. Please attach logs and console messages as well.

PhantomBot Version (Version and Build Revision from startup): 2.3.7.1-NB-20170630
OS and Java Version from Startup: windows 10 java: 1.8.0_131
Browser and Version (for Panel Support): chrome
Stock PhantomBot: Yes
Any Recent Changes to Your System: No

Description of Issue:
Error in console: [init.js:327] (hook.call, initReady, ./core/commandCoolDown.js) TypeError: Cannot call method “toString” of undefined

Dont think the error is causing any issues with the bot, but just thought would let you know.


#2

Can you give me a screenshot of your cooldowns? I see an issue in the code, but it wouldn’t cause this error to be thrown.


#3

I personally dont have any cooldowns set on any commands.

They all say undefined seconds. (Global: undefined)


#4

I also forgot to mention it was upon loading the bot, not when a command was used


#5

This looks to be a corruption in the cooldown table, since all of your cooldowns are undefined.

You will have to remove all cooldowns by typing this command in the console. !debug !dev !dbtabledel cooldown after that restart your bot.


#6

That removed the error thanks!


#7

This topic was automatically closed after 30 days. New replies are no longer allowed.