From dc9f49f568e52d414217462bed34b1f5295c17e8 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Fri, 12 Oct 2018 15:47:07 -0500 Subject: [PATCH] Add coolodown to help to see if this will stop memory problems --- bot.py | 2 +- cogs/misc.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 58f3a33..0e8c4af 100644 --- a/bot.py +++ b/bot.py @@ -98,7 +98,7 @@ async def on_command_error(ctx, error): m, s = divmod(error.retry_after, 60) fmt = "This command is on cooldown! Hold your horses! >:c\nTry again in {} minutes and {} seconds" \ .format(round(m), round(s)) - await ctx.message.channel.send(fmt) + # await ctx.message.channel.send(fmt) elif isinstance(error, commands.NoPrivateMessage): fmt = "This command cannot be used in a private message" await ctx.message.channel.send(fmt) diff --git a/cogs/misc.py b/cogs/misc.py index f7c3111..efad86f 100644 --- a/cogs/misc.py +++ b/cogs/misc.py @@ -46,6 +46,7 @@ class Miscallaneous: return ' '.join(result) @commands.command() + @commands.cooldown(1, 3, commands.cooldown.BucketType.user) @utils.can_run(send_messages=True) async def help(self, ctx, *, entity: str = None): chunks = []