Преглед на файлове

added a check so custom commands ignore pms.

tags/v1.3.0
roxie преди 6 години
родител
ревизия
26e9293a5c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      cogs/customcommands.py

+ 1
- 1
cogs/customcommands.py Целия файл

@@ -19,7 +19,7 @@ class CustomCommands():
self.servers = self.con.servers

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

Loading…
Отказ
Запис