mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 13:28:11 +08:00
fix: prefix match
This commit is contained in:
@@ -146,9 +146,8 @@ class WechatChannel(Channel):
|
|||||||
if reply_text:
|
if reply_text:
|
||||||
self.send(reply_text, msg['User']['UserName'])
|
self.send(reply_text, msg['User']['UserName'])
|
||||||
|
|
||||||
|
|
||||||
def check_prefix(self, content, prefix_list):
|
def check_prefix(self, content, prefix_list):
|
||||||
for prefix in prefix_list:
|
for prefix in prefix_list:
|
||||||
if content.lower().startswith(prefix.lower()):
|
if content.startswith(prefix):
|
||||||
return prefix
|
return prefix
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user