fixed dm alert to ignore self

This commit is contained in:
Dustin Pianalto 2018-05-23 16:08:54 -08:00
parent af11f0f2af
commit 8ddc06eb6c

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 != self.user: and message.author.id != self.user.id:
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}')