1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Add coolodown to help to see if this will stop memory problems

This commit is contained in:
phxntxm 2018-10-12 15:47:07 -05:00
parent 2d03bbc672
commit dc9f49f568
2 changed files with 2 additions and 1 deletions

2
bot.py
View file

@ -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)

View file

@ -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 = []