commandCoolDown.js error


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):
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] (, 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.


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.


I personally dont have any cooldowns set on any commands.

They all say undefined seconds. (Global: undefined)


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


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.


That removed the error thanks!


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