Add coolodown to help to see if this will stop memory problems
This commit is contained in:
parent
2d03bbc672
commit
dc9f49f568
2
bot.py
2
bot.py
|
@ -98,7 +98,7 @@ async def on_command_error(ctx, error):
|
||||||
m, s = divmod(error.retry_after, 60)
|
m, s = divmod(error.retry_after, 60)
|
||||||
fmt = "This command is on cooldown! Hold your horses! >:c\nTry again in {} minutes and {} seconds" \
|
fmt = "This command is on cooldown! Hold your horses! >:c\nTry again in {} minutes and {} seconds" \
|
||||||
.format(round(m), round(s))
|
.format(round(m), round(s))
|
||||||
await ctx.message.channel.send(fmt)
|
# await ctx.message.channel.send(fmt)
|
||||||
elif isinstance(error, commands.NoPrivateMessage):
|
elif isinstance(error, commands.NoPrivateMessage):
|
||||||
fmt = "This command cannot be used in a private message"
|
fmt = "This command cannot be used in a private message"
|
||||||
await ctx.message.channel.send(fmt)
|
await ctx.message.channel.send(fmt)
|
||||||
|
|
|
@ -46,6 +46,7 @@ class Miscallaneous:
|
||||||
return ' '.join(result)
|
return ' '.join(result)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
@commands.cooldown(1, 3, commands.cooldown.BucketType.user)
|
||||||
@utils.can_run(send_messages=True)
|
@utils.can_run(send_messages=True)
|
||||||
async def help(self, ctx, *, entity: str = None):
|
async def help(self, ctx, *, entity: str = None):
|
||||||
chunks = []
|
chunks = []
|
||||||
|
|
Loading…
Reference in a new issue