Skip to content

Commit

Permalink
fix: zhayujie#6 zhayujie#7 prefix match bug, python version, config t…
Browse files Browse the repository at this point in the history
…emplate
  • Loading branch information
zhayujie committed Dec 20, 2022
1 parent d45b800 commit 3a7400a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

### 2.运行环境

支持运行在 Linux、MacOS、Windows 系统上,且安装有 `Python`(版本在 3.7.1 以上),推荐使用Linux服务器,可托管于后台长期运行。
支持运行在 Linux、MacOS、Windows 系统上,且安装有 `Python`(版本在 3.7.1 ~ 3.9.X 之间),推荐使用Linux服务器,可托管于后台长期运行。

1.克隆项目代码:

Expand Down
2 changes: 1 addition & 1 deletion channel/wechat/wechat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ def _do_send_group(self, query, msg):

def check_prefix(self, content, prefix_list):
for prefix in prefix_list:
if content.lower().startswith(prefix):
if content.lower().startswith(prefix.lower()):
return prefix
return None
2 changes: 1 addition & 1 deletion config-template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"open_ai_api_key": "${YOUR API KEY}$",
"open_ai_api_key": "YOUR API KEY",
"single_chat_prefix": ["bt", "@bt"],
"single_chat_reply_prefix": "[bot] ",
"group_chat_prefix": ["@bt"],
Expand Down

0 comments on commit 3a7400a

Please sign in to comment.