Ver código fonte

Update chat_channel.py

master
Saboteur7 GitHub 10 meses atrás
pai
commit
7db4253264
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: B5690EEEBB952194
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      channel/chat_channel.py

+ 2
- 2
channel/chat_channel.py Ver arquivo

@@ -99,8 +99,8 @@ class ChatChannel(Channel):
nick_name_black_list = conf().get("nick_name_black_list", [])
if context.get("isgroup", False): # 群聊
# 校验关键字
match_prefix = check_prefix(content, conf().get("group_chat_prefix",[""]))
match_contain = check_contain(content, conf().get("group_chat_keyword",[""]))
match_prefix = check_prefix(content, conf().get("group_chat_prefix"))
match_contain = check_contain(content, conf().get("group_chat_keyword"))
flag = False
if context["msg"].to_user_id != context["msg"].actual_user_id:
if match_prefix is not None or match_contain is not None:


Carregando…
Cancelar
Salvar