1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Changed up the error messages a bit, to match Bonfire's implicit personality

This commit is contained in:
phxntxm 2016-07-13 16:24:21 -05:00
parent f37e094d13
commit f49d21f298

4
bot.py
View file

@ -52,13 +52,13 @@ async def on_member_remove(member):
@bot.event
async def on_command_error(error, ctx):
if isinstance(error, commands.CommandNotFound):
fmt = "That is not a valid command! If you need asistance on what command to use, please enter '!help'"
fmt = "That is not a valid command! There's a help command for a reason, learn to use it."
await bot.send_message(ctx.message.channel, fmt)
elif isinstance(error, commands.BadArgument):
fmt = "Please provide a valid argument to pass to the command: {}".format(error)
await bot.send_message(ctx.message.channel, fmt)
elif isinstance(error, commands.CheckFailure):
fmt = "You do not have permissions to run that command!"
fmt = "You can't tell me what to do!"
await bot.send_message(ctx.message.channel, fmt)
else:
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'