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