chore: 添加nakuru相关配置; 使用nakuru-project-test临时包

This commit is contained in:
Rock Chin 2023-04-23 09:31:35 +08:00
parent 640afdc49c
commit e74df0b37d
3 changed files with 15 additions and 3 deletions

3
.gitignore vendored
View File

@ -19,4 +19,5 @@ cookies.json
res/announcement_saved
res/announcement_saved.json
cmdpriv.json
tips.py
tips.py
.venv

View File

@ -4,9 +4,10 @@ import logging
# 消息处理协议适配器
# 目前支持以下适配器:
# - "yirimirai": YiriMirai框架适配器, 请填写mirai_http_api_config
# - "nakuru": 通过nakuru-project框架连接go-cqhttp请填写nakuru_config
msg_source_adapter = "yirimirai"
# [必需] Mirai的配置
# [必需(与nakuru二选一取决于msg_source_adapter)] Mirai的配置
# 请到配置mirai的步骤中的教程查看每个字段的信息
# adapter: 选择适配器目前支持HTTPAdapter和WebSocketAdapter
# host: 运行mirai的主机地址
@ -23,6 +24,15 @@ mirai_http_api_config = {
"qq": 1234567890
}
# [必需(与mirai二选一取决于msg_source_adapter)]
# 使用nakuru-project框架连接go-cqhttp的配置
nakuru_config = {
"host": "localhost", # go-cqhttp的地址
"port": 6700, # go-cqhttp的正向websocket端口
"http_port": 5700, # go-cqhttp的正向http端口
"token": "" # 若在go-cqhttp的config.yml设置了access_token, 则填写此处
}
# [必需] OpenAI的配置
# api_key: OpenAI的API Key
# http_proxy: 请求OpenAI时使用的代理None为不使用https和socks5暂不能使用

View File

@ -6,4 +6,5 @@ yiri-mirai~=0.2.6.1
websockets
urllib3~=1.26.10
func_timeout~=4.3.5
Pillow
Pillow
nakuru-project-test