From 197f0ae4b8e6730e18ca3e5109d9f30563b3983e Mon Sep 17 00:00:00 2001 From: zhayujie Date: Tue, 20 Dec 2022 16:42:09 +0800 Subject: [PATCH] fix: prefix match --- channel/wechat/wechat_channel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index f4f4470..af376ec 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -146,9 +146,8 @@ class WechatChannel(Channel): if reply_text: self.send(reply_text, msg['User']['UserName']) - def check_prefix(self, content, prefix_list): for prefix in prefix_list: - if content.lower().startswith(prefix.lower()): + if content.startswith(prefix): return prefix return None