From b8c9e6e286dbfc7a2ac0db0f33d3aa0c31dae3c2 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Wed, 23 May 2018 16:15:12 -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 c5f6c4e..824e5ec 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 != message.guild.me: + and message.author != self.user: await self.get_user(351794468870946827).send(f'{message.author.name} ({message.author.id}) is using me ' f'in DMs\n{message.content}')