feat(bot): ✨ Add 15 seconds cooldown to skip and call commands.

This commit is contained in:
Nyeki.py
2024-10-25 23:54:16 -03:00
parent 2faf314467
commit 16f6a3f587
+2
View File
@@ -82,6 +82,7 @@ class Calls(base.Cog):
@commands.command(aliases=["c"]) @commands.command(aliases=["c"])
@commands.guild_only() @commands.guild_only()
@commands.cooldown(1, 15, commands.BucketType.channel)
@checks.is_unbanned() @checks.is_unbanned()
@transactions.atomic() @transactions.atomic()
async def call(self, ctx: commands.Context) -> None: async def call(self, ctx: commands.Context) -> None:
@@ -262,6 +263,7 @@ class Calls(base.Cog):
@commands.command(aliases=["s"]) @commands.command(aliases=["s"])
@commands.guild_only() @commands.guild_only()
@commands.cooldown(1, 15, commands.BucketType.channel)
@checks.is_unbanned() @checks.is_unbanned()
@transactions.atomic() @transactions.atomic()
async def skip(self, ctx: commands.Context) -> None: async def skip(self, ctx: commands.Context) -> None: