1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 14:47:29 +00:00

Change error output to include user ID instead of mention

This commit is contained in:
Myned 2020-01-11 02:47:24 -05:00
parent 09c4fc844e
commit 3dd3647aa4
No known key found for this signature in database
GPG key ID: E0C1E07EC22E19C8

View file

@ -98,7 +98,7 @@ async def on_message(message):
and message.author.id != u.config['owner_id'] and message.author.id != u.config['owner_id']
and not any(s in u.config['prefix'] for s in (message.content[:1], message.content[:2]))): and not any(s in u.config['prefix'] for s in (message.content[:1], message.content[:2]))):
await bot.get_user(u.config['owner_id']).send( await bot.get_user(u.config['owner_id']).send(
f'**@{message.author.name}#{message.author.discriminator}:**\n{message.content}') f'**{message.author.id}:**\n{message.content}')
await bot.process_commands(message) await bot.process_commands(message)
else: else:
@ -152,7 +152,7 @@ async def on_command_error(ctx, error):
await bot.get_user(u.config['owner_id']).send( await bot.get_user(u.config['owner_id']).send(
'**COMMAND ERROR** \N{WARNING SIGN} ' '**COMMAND ERROR** \N{WARNING SIGN} '
f'`{ctx.message.content}` ' f'`{ctx.message.content}` '
f'from {ctx.author.mention} ' f'from {ctx.author.id} '
f'in {ctx.channel.mention if isinstance(ctx.channel, d.channel.TextChannel) else "DMs"}' f'in {ctx.channel.mention if isinstance(ctx.channel, d.channel.TextChannel) else "DMs"}'
'\n```\n' '\n```\n'
f'{error}```') f'{error}```')