diff --git a/src/run.py b/src/run.py index 0d6c08e..c1644e9 100644 --- a/src/run.py +++ b/src/run.py @@ -144,9 +144,9 @@ async def on_command_error(ctx, error): '\n! ! ! ! ! ! ! ! ! ! ! !\n', file=sys.stderr) tb.print_exception(type(error), error, error.__traceback__, file=sys.stderr) await bot.get_user(u.config['owner_id']).send( - '**COMMAND ERROR** \N{WARNING SIGN}' - f'`{ctx.message.content}`' - f'from {ctx.author.mention}' + '**COMMAND ERROR** \N{WARNING SIGN} ' + f'`{ctx.message.content}` ' + f'from {ctx.author.mention} ' f'in {ctx.channel.mention if isinstance(ctx.channel, d.channel.TextChannel) else "DMs"}' '\n```\n' f'{error}```')