Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.81k stars 2.31k forks source link

[CustomCommands] Cooldown for custom commands #2120

Closed Zalatis closed 6 years ago

Zalatis commented 6 years ago

Feature request

Select the type of feature you are requesting:

Describe your requested feature

In customcog cog add the possibility to mention a cooldown for the custom command

[p]customcom add commandyouwant Hello World -t 3600

3600 = time in seconds

Tobotimus commented 6 years ago

Hi! I think we could probably include this in 3.1. I see in your example you've included unix-style arg parsing, unfortunately we don't really support that in core at the moment. I would instead suggest a new command:

[p]customcom setcooldown <command> <seconds>

This prevents polluting [p]customcom add's arguments but is still straightforward to use.

Zalatis commented 6 years ago

Nice thank you :)

Zephyrkul commented 6 years ago

Sounds fun and I'm bored. I'll look into it.

Zephyrkul commented 6 years ago

I wasn't sure what type of cooldown you were referring to (per user, per channel, overall?), so I just put all three in.

Zalatis commented 6 years ago

Really nice , any possibility to adapt the develop branch with this too ? 🥉 (not only V3 then :c)

Zephyrkul commented 6 years ago

I don't plan to, sorry. That branch (V2) is feature-frozen; bugfixes and minor enhancements only.

Zalatis commented 6 years ago

Oh okay :( Np going to sleep have a good day :)

Zephyrkul commented 6 years ago

Sure thing. If you want to consider upgrading to V3 at any point feel free to ask questions about it in the official server.

Kowlin commented 6 years ago

Merged in #2124