浏览代码

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

正在加载...
取消
保存