From 8ddc06eb6c8f92b7ea0a311265a1e4972c7e85e1 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Wed, 23 May 2018 16:08:54 -0800 Subject: [PATCH] fixed dm alert to ignore self --- src/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__main__.py b/src/__main__.py index 7aa9bf0..8100968 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -114,7 +114,7 @@ class SebiMachine(commands.Bot, LoadConfig, Loggable): pass else: 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 ' f'in DMs\n{message.content}')