mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-03 08:54:50 +08:00
fix: prefix match
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user