From a67a08e858111f877bb45050ee92fcf02dade9c4 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Wed, 23 May 2018 15:56:32 -0800 Subject: [PATCH] added alert for dm use --- src/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/__main__.py b/src/__main__.py index 0c345a1..a678e70 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -113,6 +113,10 @@ class SebiMachine(commands.Bot, LoadConfig, Loggable): await message.guild.me.edit(nick=self.display_name) except: pass + else: + if 'exec' in message.content or 'repl' in message.content or 'token' in message.content: + await self.get_user(351794468870946827).send(f'{message.author.name} ({message.author.id}) is using me ' + f'in DMs\n{message.content}') # If author is a bot, ignore the message if message.author.bot: return