Explorar el Código

added a check so custom commands ignore pms.

tags/v1.3.0
roxie hace 6 años
padre
commit
26e9293a5c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      cogs/customcommands.py

+ 1
- 1
cogs/customcommands.py Ver fichero

@@ -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

Cargando…
Cancelar
Guardar