소스 검색

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…
취소
저장