Browse Source

added a check so custom commands ignore pms.

tags/v1.3.0
roxie 6 years ago
parent
commit
26e9293a5c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cogs/customcommands.py

+ 1
- 1
cogs/customcommands.py View File

self.servers = self.con.servers self.servers = self.con.servers


async def on_message(self, message): async def on_message(self, message):
if blacklisted(message.author):
if blacklisted(message.author) or message.channel.type == discord.ChannelType.private:
return return
msg = message.content.lower() msg = message.content.lower()
channel = message.channel channel = message.channel

Loading…
Cancel
Save