Skip to content

File_EX1 「QQGuildBot的安装」

Wuyi无疑 edited this page Dec 4, 2022 · 6 revisions

1.安装Nonebot2

  • adapter选择qqguild

2.安装插件和依赖

$ git clone -b QQGuildBot https://ghproxy.com/https://github.com/KimigaiiWuyi/GenshinUID.git --depth=1 --single-branch

3.配置.env

.env的配置参考如下(部分敏感信息以*代替)

HOST=127.0.0.1
PORT=8080
LOG_LEVEL=DEBUG
FASTAPI_RELOAD=false
DRIVER=~fastapi+~websockets+~httpx
SUPERUSERS=[7689493**07987945**]
COMMAND_START=["","/"]
QQGUILD_BOTS=[{"id":10*****1,"token":"T3an********QQebo","secret":"c8b91********940","intent":{"direct_message": true}}]
QQGUILD_IS_SANDBOX=false

4.在Bot目录内输入nb run