officereso 126e098fd9 Moved ouat and ows automod to automod folder.
Signed-off-by: officereso <qrs01@snowtx.com>
2019-04-25 19:06:29 -05:00

20 lines
566 B
Python

from discord.ext import commands
class Ows(commands.Cog):
def __init__(self, client):
self._last_member = None
self.client = client
@commands.Cog.listener()
async def on_message(self, message):
if self.client.get_channel(message.channel.id) == self.client.get_channel(492089451476942848): # ows auto mod
words = message.content.split(' ')
if len(words) > 1:
await message.delete()
await self.client.process_commands(message)
def setup(client):
client.add_cog(Ows(client))