bot
bot copied to clipboard
Implemented optional duration parameter in slowmode command
Closes #3327.
Implemented an optional duration argument for the slowmode command. If the duration argument is present, the intended expiration datetime and the original slowmode interval are saved in redis cache. After the duration is elapsed, the original slowmode interval is grabbed from redis and restored to the channel.
The expiration datetime is cached so that it can persist bot restart.