-
Notifications
You must be signed in to change notification settings - Fork 2
1. 使用
17TheWord edited this page Aug 12, 2024
·
14 revisions
-
驱动器选择
DRIVER=~fastapi+~websockets
-
通过
nb-cli
安装nb adapter install nonebot-adapter-minecraft
- 前往 QueQiao Release 下载鹊桥插件/模组,使用方法详见
QueQiao Wiki
- 读取日志的独立程序,前往 mcqq 插件 Release 下载(较旧,更新可能落后)
配置 Minecraft
实现的 ws reverse
相关配置,使用 websocket-client
的 url_list
并将上报地址改为以下地址其一
ws://127.0.0.1:8080/minecraft/
ws://127.0.0.1:8080/minecraft/ws
ws://127.0.0.1:8080/minecraft/ws/
其中,127.0.0.1
和 8080
分别对应 NoneBot
配置的 HOST
和 PORT。
# 正向 Websocket 配置
minecraft_ws_urls = '{
"Server": ["ws://127.0.0.1:8089"]
}'
用于对连接进行安全验证
与 mc
端配置文件中 access_token
保持一致
默认为空可不设置,不设置即为不验证
minecraft_access_token=""
minecraft_server_rcon = '{
"Server": {
"enable_rcon": true,
"rcon_port": 25575,
"rcon_password": "123456789"
},
"Server2": {
"enable_rcon": false,
"rcon_port": 25576,
"rcon_password": "123456789"
}
}'