aboutsummaryrefslogtreecommitdiff
path: root/cogs/src.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcogs/src.py8
1 files changed, 8 insertions, 0 deletions
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: