-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double cooldowns in Duels #18
Comments
That looks like a Red issue; I know the cooldown messages were added somewhat recently. See if it happens in another cog with cooldowns.
|
Thanks for the really fast reply. Maybe you can help me understand cooldowns actually, since I haven't found that in documentation.
|
It's pretty easy to grok from the cooldown code inside the library at https://github.com/Rapptz/discord.py/blob/async/discord/ext/commands/cooldowns.py .
In this case, it is a limit of use per minute per user. The buckets can also be per channel, server, or global.
EDIT: for some stupid reason, email replies don't support markdown.
|
Thanks for the help. I managed to fix this by commenting out this line in red.py:
I'm not sure why it was performing both of these sends, and not entirely sure of the consequences to other cogs in commenting that out, but at least Duels works better now. One more unrelated question though, I'm noticing after the fifth message that's sent it's as if the bot gets throttled and it pauses for a moment before continuing to output duel results. Do you know why that is? |
That looks like a modified version of red.py; the mainline version doesn't have two In any case, this is a Red issue and not with my cogs specifically. I think you should |
Without modifying any code, I'm getting two cooldown messages on cooldown. Any idea how to work around that?
The text was updated successfully, but these errors were encountered: