From 3c12f56459b3bff65a0697b46ad09b1a86d29ebf Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Wed, 27 May 2020 13:01:25 +0100 Subject: modified: bot.py modified: cogs/src.py modified: custom_commands.json --- cogs/src.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cogs/src.py') diff --git a/cogs/src.py b/cogs/src.py index 4b84610..11992bb 100755 --- a/cogs/src.py +++ b/cogs/src.py @@ -156,6 +156,7 @@ class Src(commands.Cog): async def is_mod(ctx): return ctx.author.guild_permissions.manage_channels + @commands.cooldown(1, 30, commands.BucketType.guild) @commands.command(description="Posts all pending runs to #pending-runs") @commands.guild_only() async def pending(self, ctx): @@ -163,6 +164,13 @@ class Src(commands.Cog): await clear(self) await pendingRuns(self, ctx) + @pending.error + async def pending_handler(self,ctx,error): + if isinstance(error, commands.CommandOnCooldown): + await ctx.send('this annoys me more') + else: + await ctx.send('Something is fucked up please help AAAAAAAAAA') + @commands.command() async def verify(self, ctx, apiKey=None): if apiKey == None: -- cgit v1.2.3