djs-ccooldown

0.0.2 • Public • Published

DiscordJS Commands Cooldown

discordjs-ccooldowns or DiscordJS Commands Cooldown is an easy way to add cooldown to your slashcommands for your bot using discordjs

Using a little count of code lines you can add an advanced feature to your bot and make it looks more professional

Create cooldowns using MySQL

Note: Although it is true that you will need a MySQL database and it will take more work to use this library creating the cooldowns using the MySQL method is the safest since it will avoid that when the bot is restarted the cooldowns are eliminated, in the same way It will avoid many errors that the Map method could cause

Create cooldowns using JavaScipt Map

Note: It is not recommended to use this method because if the bot restarts, all cooldowns will be removed.

Package Sidebar

Install

npm i djs-ccooldown

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

4.89 kB

Total Files

6

Last publish

Collaborators

  • hazrc