KnightHacks / scythe

A Command-Driven Discord.js Addon
MIT License
3 stars 3 forks source link

Add Command Cooldowns #13

Closed suneettipirneni closed 3 years ago

suneettipirneni commented 3 years ago

A field on the command that specifies how often a command can be executed. This will involve having a map-like structure storing commands that are cooling down. These entries will get removed whenever the cooldown is over. If a command is run and it is still in the cooldown map, then the user will receive a cooldown error.