Cooldown for commands
ayushpande06 opened this issue · 3 comments
ayushpande06 commented
Can you add Cooldown for this bot? Thanks in Advance
ayushpande06 commented
hello?
AyushSehrawat commented
Yes, you can add decorators for cooldown
AyushSehrawat commented
from discord.ext import commands
from discord.ext.commands import BucketType, cooldown
@cooldown(1, 30, BucketType.user)
You can add this decorator. For example this code will put a cooldown of 30s after the user used the command once.