fix: #6 #7 prefix match bug, python version, config template

This commit is contained in:
zhayujie
2022-12-20 16:32:05 +08:00
parent d45b8000dc
commit 3a7400a7ae
3 changed files with 3 additions and 3 deletions

View File

@@ -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.克隆项目代码:

View File

@@ -149,6 +149,6 @@ class WechatChannel(Channel):
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

View File

@@ -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"],