Adding minimum cooldown to some commands

pull/8/head
sgoudham 4 years ago
parent 4b511fcd2f
commit f07e6e0ef9

@ -180,6 +180,7 @@ class Fun(commands.Cog):
await ctx.message.delete() await ctx.message.delete()
@command(name="digby", aliases=["Digby"], hidden=True) @command(name="digby", aliases=["Digby"], hidden=True)
@cooldown(1, 1, BucketType.user)
@bot_has_permissions(embed_links=True) @bot_has_permissions(embed_links=True)
async def digby(self, ctx): async def digby(self, ctx):
"""Pictures of Digby!""" """Pictures of Digby!"""
@ -375,6 +376,7 @@ class Fun(commands.Cog):
await ctx.message.channel.send(owo) await ctx.message.channel.send(owo)
@command(name="remindme", aliases=["Remindme", "rm"]) @command(name="remindme", aliases=["Remindme", "rm"])
@cooldown(1, 1, BucketType.user)
async def remind_me(self, ctx, time: Optional[int] = None, *, text): async def remind_me(self, ctx, time: Optional[int] = None, *, text):
"""Remind you in DMs""" """Remind you in DMs"""

Loading…
Cancel
Save