Escape error message before sending

This commit is contained in:
Ave Ozkal 2018-12-31 02:07:33 +03:00
parent 203761856e
commit e4c4db29af
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -127,6 +127,7 @@ async def on_command_error(ctx, error):
log.error(err_msg)
err_msg = bot.escape_message(err_msg)
await bot.botlog_channel.send(err_msg)
if isinstance(error, commands.NoPrivateMessage):