1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Updated debug command to print an error

This commit is contained in:
Phxntxm 2016-08-01 10:31:21 -05:00
parent 2e7906fd4a
commit 95b28f87c1

View file

@ -60,7 +60,8 @@ class Owner:
self.bot.loop.create_task(self.bot.say("```\n{}```".format(v)))
exec(match_multi[0])
except Exception as error:
await bot.send_message(ctx.message.channel, fmt.format(type(error).__name__, error))
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
await self.bot.say(fmt.format(type(error).__name__, error))
@commands.command(pass_context=True)
@commands.check(checks.isOwner)