mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7dc3c5dab | ||
|
|
d01d3a3c53 | ||
|
|
580e062dbf | ||
|
|
c8cee8410c | ||
|
|
6bf331c2e3 | ||
|
|
4c4930737c |
9
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
9
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
@@ -14,6 +14,15 @@ body:
|
|||||||
- Docker部署
|
- Docker部署
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
attributes:
|
||||||
|
label: 登录框架
|
||||||
|
description: "连接QQ使用的框架"
|
||||||
|
options:
|
||||||
|
- Mirai
|
||||||
|
- go-cqhttp
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: 系统环境
|
label: 系统环境
|
||||||
|
|||||||
1
main.py
1
main.py
@@ -208,6 +208,7 @@ def start(first_time_init=False):
|
|||||||
def run_bot_wrapper():
|
def run_bot_wrapper():
|
||||||
global known_exception_caught
|
global known_exception_caught
|
||||||
try:
|
try:
|
||||||
|
logging.info("使用账号: {}".format(qqbot.bot_account_id))
|
||||||
qqbot.adapter.run_sync()
|
qqbot.adapter.run_sync()
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
if str(e).__contains__("argument 'debug'"):
|
if str(e).__contains__("argument 'debug'"):
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class DataGatherer:
|
|||||||
config = pkg.utils.context.get_config()
|
config = pkg.utils.context.get_config()
|
||||||
if not config.report_usage:
|
if not config.report_usage:
|
||||||
return
|
return
|
||||||
res = requests.get("http://reports.rockchin.top:18989/usage?service_name=qchatgpt.{}&version={}&count={}".format(subservice_name, self.version_str, count))
|
res = requests.get("http://reports.rockchin.top:18989/usage?service_name=qchatgpt.{}&version={}&count={}&msg_source={}".format(subservice_name, self.version_str, count, config.msg_source_adapter))
|
||||||
if res.status_code != 200 or res.text != "ok":
|
if res.status_code != 200 or res.text != "ok":
|
||||||
logging.warning("report to server failed, status_code: {}, text: {}".format(res.status_code, res.text))
|
logging.warning("report to server failed, status_code: {}, text: {}".format(res.status_code, res.text))
|
||||||
except:
|
except:
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
- [Mirai](https://github.com/mamoe/mirai) 高效率 QQ 机器人支持库
|
- [Mirai](https://github.com/mamoe/mirai) 高效率 QQ 机器人支持库
|
||||||
- [YiriMirai](https://github.com/YiriMiraiProject/YiriMirai) 一个轻量级、低耦合的基于 mirai-api-http 的 Python SDK。
|
- [YiriMirai](https://github.com/YiriMiraiProject/YiriMirai) 一个轻量级、低耦合的基于 mirai-api-http 的 Python SDK。
|
||||||
|
- [go-cqhttp](https://github.com/Mrs4s/go-cqhttp) cqhttp的golang实现,轻量、原生跨平台.
|
||||||
|
- [nakuru-project](https://github.com/Lxns-Network/nakuru-project) - 一款为 go-cqhttp 的正向 WebSocket 设计的 Python SDK,支持纯 CQ 码与消息链的转换处理
|
||||||
|
- [nakuru-project-idk](https://github.com/idoknow/nakuru-project-idk) - 由idoknow维护的nakuru-project分支
|
||||||
- [dulwich](https://github.com/jelmer/dulwich) Pure-Python Git implementation
|
- [dulwich](https://github.com/jelmer/dulwich) Pure-Python Git implementation
|
||||||
- [OpenAI API](https://openai.com/api/) OpenAI API
|
- [OpenAI API](https://openai.com/api/) OpenAI API
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
## 步骤
|
## 步骤
|
||||||
|
|
||||||
1. 从[go-cqhttp的Release](https://github.com/Mrs4s/go-cqhttp/releases/latest)下载最新的go-cqhttp可执行文件(建议直接下载可执行文件压缩包,而不是安装器)
|
1. 从[go-cqhttp的Release](https://github.com/Mrs4s/go-cqhttp/releases/latest)下载最新的go-cqhttp可执行文件(建议直接下载可执行文件压缩包,而不是安装器)
|
||||||
2. 解压并运行,首次运行会询问需要开放的网络协议,请填入`02`并回车
|
2. 解压并运行,首次运行会询问需要开放的网络协议,**请填入`02`并回车**
|
||||||
|
|
||||||
```
|
```
|
||||||
C:\Softwares\go-cqhttp.old> .\go-cqhttp.exe
|
C:\Softwares\go-cqhttp.old> .\go-cqhttp.exe
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
以下是QChatGPT实现原理等技术信息,贡献之前请仔细阅读
|
以下是QChatGPT实现原理等技术信息,贡献之前请仔细阅读
|
||||||
|
|
||||||
|
> 太久没更了,过时了,建议读源码,~~注释还挺全的~~
|
||||||
> 请先阅读OpenAI API的相关文档 https://beta.openai.com/docs/ ,以下信息假定您已了解OpenAI模型的相关特性及其接口的调用方法。
|
> 请先阅读OpenAI API的相关文档 https://beta.openai.com/docs/ ,以下信息假定您已了解OpenAI模型的相关特性及其接口的调用方法。
|
||||||
|
|
||||||
## 术语
|
## 术语
|
||||||
|
|||||||
Reference in New Issue
Block a user