added alert for dm use

This commit is contained in:
Dustin Pianalto 2018-05-23 15:56:32 -08:00
parent a3c7f25109
commit a67a08e858

View File

@ -113,6 +113,10 @@ class SebiMachine(commands.Bot, LoadConfig, Loggable):
await message.guild.me.edit(nick=self.display_name) await message.guild.me.edit(nick=self.display_name)
except: except:
pass 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 author is a bot, ignore the message
if message.author.bot: return if message.author.bot: return