Skip to content

Commit

Permalink
chore: 添加依赖和配置字段
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Nov 15, 2023
1 parent eebd6a6 commit 131e0b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config-template.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
# 目前支持以下适配器:
# - "yirimirai": mirai的通信框架,YiriMirai框架适配器, 请同时填写下方mirai_http_api_config
# - "nakuru": go-cqhttp通信框架,请同时填写下方nakuru_config
# - "qq-botpy": QQ官方机器人框架,请同时填写下方qq_botpy_config
msg_source_adapter = "yirimirai"

# [必需(与nakuru二选一,取决于msg_source_adapter)] Mirai的配置
# [必需(与nakuru、qq-botpy三选一,取决于msg_source_adapter)] Mirai的配置
# 请到配置mirai的步骤中的教程查看每个字段的信息
# adapter: 选择适配器,目前支持HTTPAdapter和WebSocketAdapter
# host: 运行mirai的主机地址
Expand All @@ -24,7 +25,7 @@
"qq": 1234567890
}

# [必需(与mirai二选一,取决于msg_source_adapter)]
# [必需(与mirai、qq-botpy三选一,取决于msg_source_adapter)]
# 使用nakuru-project框架连接go-cqhttp的配置
nakuru_config = {
"host": "localhost", # go-cqhttp的地址
Expand All @@ -33,6 +34,13 @@
"token": "" # 若在go-cqhttp的config.yml设置了access_token, 则填写此处
}

# [必需(与mirai、nakuru三选一,取决于msg_source_adapter)]
# 使用qq-botpy框架连接QQ官方机器人的配置
qq_botpy_config = {
"appid": "1234567890", # QQ机器人的appid
"token": "jwnxxxxxxxxxx", # QQ机器人的token
}

# [必需] OpenAI的配置
# api_key: OpenAI的API Key
# http_proxy: 请求OpenAI时使用的代理,None为不使用,https和socks5暂不能使用
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ nakuru-project-idk
CallingGPT
tiktoken
PyYaml
qq-botpy

0 comments on commit 131e0b4

Please sign in to comment.