From a15b8ea8c16f5c601e18dc5a328f94b8eccf73f5 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Wed, 8 Mar 2023 01:10:33 +0800 Subject: [PATCH 1/3] docs: update README.md for web channel --- README.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 153e9c5..696f4b1 100644 --- a/README.md +++ b/README.md @@ -395,9 +395,8 @@ https://slack.dev/bolt-python/tutorial/getting-started ``` ### 9.Web -#### http -**需要:** 服务器 +**Contributor:** [RegimenArsenic](https://github.com/RegimenArsenic) **依赖** @@ -411,17 +410,13 @@ pip3 install PyJWT flask "channel": { "type": "http", "http": { - "http_auth_secret_key": "6d25a684-9558-11e9-aa94-efccd7a0659b",//jwt认证秘钥 - "http_auth_password": "6.67428e-11",//认证密码,仅仅只是自用,最初步的防御别人扫描端口后DDOS浪费tokens - "port": "80"//端口 + "http_auth_secret_key": "6d25a684-9558-11e9-aa94-efccd7a0659b", //jwt认证秘钥 + "http_auth_password": "6.67428e-11", //认证密码,仅仅只是自用,最初步的防御别人扫描端口后DDOS浪费tokens + "port": "80" //端口 } } ``` +本地运行:`python3 app.py`运行后访问 `http://127.0.0.1:80` - -URL,如果端口是 80 ,可不填 - -``` -http:/你的固定公网ip或者域名:端口/ -``` +服务器运行:部署后访问 `http://公网域名或IP:端口` From c896509038d0c76fb50b6649f78c628ce3a388ec Mon Sep 17 00:00:00 2001 From: zhayujie Date: Mon, 13 Mar 2023 00:20:32 +0800 Subject: [PATCH 2/3] fix(qq): close heartbeat and add tips in doc --- README.md | 4 +++- channel/qq/config.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 696f4b1..d30f202 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,9 @@ python3 app.py # 此时会监听8080端口 cd channel/qq ./go-cqhttp ``` -注意:目前未设置任何 关键词匹配 及 群聊白名单,对所有私聊均会自动回复,在群聊中只要被@也会自动回复。 +注意: ++ 目前未设置任何 关键词匹配 及 群聊白名单,对所有私聊均会自动回复,在群聊中只要被@也会自动回复。 ++ 如果出现 账号被冻结 等异常提示,可将 go-cqhttp 同目录下的 device.json 文件中`protocol`的值由5改为2,参考该[Issue](https://github.com/Mrs4s/go-cqhttp/issues/1942)。 ### 6.Telegram diff --git a/channel/qq/config.yml b/channel/qq/config.yml index 447a786..c0134bd 100644 --- a/channel/qq/config.yml +++ b/channel/qq/config.yml @@ -19,7 +19,7 @@ account: # 账号相关 heartbeat: # 心跳频率, 单位秒 # -1 为关闭心跳 - interval: 5 + interval: -1 message: # 上报数据类型 From 006a5d946e919d05e67ff8e1833941c14571591d Mon Sep 17 00:00:00 2001 From: zhayujie Date: Tue, 14 Mar 2023 00:34:23 +0800 Subject: [PATCH 3/3] docs: update README.md for wechat #121 --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d30f202..c9cf5a8 100644 --- a/README.md +++ b/README.md @@ -146,9 +146,18 @@ pip3 install --upgrade openai ### 2.个人微信 -与项目 [chatgpt-on-wechat](https://github.com/zhayujie/chatgpt-on-wechat) 的使用方式相同,目前接入个人微信可能导致账号被限制,暂时不建议使用。 +与项目 [chatgpt-on-wechat](https://github.com/zhayujie/chatgpt-on-wechat) 的使用方式相似。 -配置项说明: +**安装依赖:** + +```bash +pip3 install itchat-uos==1.5.0.dev0 +pip3 install --upgrade openai +``` +注:`itchat-uos`使用指定版本1.5.0.dev0,`openai`使用最新版本,需高于0.27.0。 + + +**配置项说明:** ```bash "channel": {