mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 21:38:18 +08:00
fix: single reply in no prefix
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ QR.png
|
|||||||
nohup.out
|
nohup.out
|
||||||
tmp
|
tmp
|
||||||
plugins.json
|
plugins.json
|
||||||
|
itchat.pkl
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class WechatChannel(Channel):
|
|||||||
return
|
return
|
||||||
if match_prefix:
|
if match_prefix:
|
||||||
content = content.replace(match_prefix, '', 1).strip()
|
content = content.replace(match_prefix, '', 1).strip()
|
||||||
else:
|
elif match_prefix is None:
|
||||||
return
|
return
|
||||||
context = Context()
|
context = Context()
|
||||||
context.kwargs = {'isgroup': False, 'msg': msg, 'receiver': other_user_id, 'session_id': other_user_id}
|
context.kwargs = {'isgroup': False, 'msg': msg, 'receiver': other_user_id, 'session_id': other_user_id}
|
||||||
|
|||||||
Reference in New Issue
Block a user