Layer of security to prevent abuse by requesting a command multiple times in a short period of time.
Also replies as a DM informing the amount of time left for issuing the command again.
Task items:
[X] Add configurable environment variable;
[X] Add cooldown setting per command;
[X] Reply to the offender with a DM;
Requirements (optional)
New setting available to define the amount of seconds of the cooldown
An ENV variable needs to be defined (optional, defaulting to 10 seconds);
Description
This pull request addresses issue BOT-14.
Layer of security to prevent abuse by requesting a command multiple times in a short period of time. Also replies as a DM informing the amount of time left for issuing the command again.
Task items:
Requirements (optional)
New setting available to define the amount of seconds of the cooldown
ENV
variable needs to be defined (optional, defaulting to 10 seconds);