aboutsummaryrefslogtreecommitdiff
path: root/cogs/src.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-05-27 12:01:25 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-05-27 12:01:25 +0000
commit3c12f56459b3bff65a0697b46ad09b1a86d29ebf (patch)
tree044f4c630f10f8dfad0fd29c47792a24d333c17e /cogs/src.py
parent1c29f6f62a303f530c452fd9e8cf2df8df27c8bb (diff)
downloadsteve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.tar
steve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.tar.gz
steve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.tar.bz2
steve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.tar.lz
steve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.tar.xz
steve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.tar.zst
steve-bot-3c12f56459b3bff65a0697b46ad09b1a86d29ebf.zip
modified: bot.py
modified: cogs/src.py modified: custom_commands.json
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: