fixed dm alert to ignore self

This commit is contained in:
Dustin Pianalto 2018-05-23 16:15:12 -08:00
parent b474899392
commit b8c9e6e286

View File

@ -114,7 +114,7 @@ class SebiMachine(commands.Bot, LoadConfig, Loggable):
pass pass
else: else:
if ('exec' in message.content or 'repl' in message.content or 'token' in message.content) \ if ('exec' in message.content or 'repl' in message.content or 'token' in message.content) \
and message.author != message.guild.me: and message.author != self.user:
await self.get_user(351794468870946827).send(f'{message.author.name} ({message.author.id}) is using me ' await self.get_user(351794468870946827).send(f'{message.author.name} ({message.author.id}) is using me '
f'in DMs\n{message.content}') f'in DMs\n{message.content}')