-
Notifications
You must be signed in to change notification settings - Fork 101
File2「Nonebot2的安装」
Wuyi无疑 edited this page Feb 21, 2023
·
17 revisions
三选一即可
$ git clone -b nonebot2-beta1 https://ghproxy.com/https://github.com/KimigaiiWuyi/GenshinUID.git --depth=1 --single-branch
# pip
$ pip3 install git+https://ghproxy.com/https://github.com/KimigaiiWuyi/GenshinUID.git@nonebot2-beta1#egg=GenshinUID
# nb-cli
$ nb plugin install git+https://github.com/KimigaiiWuyi/GenshinUID.git@nonebot2-beta1#egg=GenshinUID
$ git clone -b nonebot2-beta1 https://ghproxy.com/https://github.com/KimigaiiWuyi/GenshinUID.git --depth=1 --single-branch GenshinUID-nonebot2
$ pip3 install --editable ./GenshinUID-nonebot2
在 Nonebot2 的 Bot.py 文件中,添加 GenshinUID 的插件加载代码。
pip install -r requirements.txt
poetry install
启动 NoneBot2 后,私聊机器人,发送添加 cookies
(方法:获取米游社 Cookies)
进入机器人在的群聊,即可正常使用本插件。
群内或私聊发送gs更新
即可
# pip
$ pip3 install git+https://ghproxy.com/https://github.com/KimigaiiWuyi/GenshinUID.git@nonebot2-beta1#egg=GenshinUID -U
# nb-cli
$ nb plugin update git+https://github.com/KimigaiiWuyi/GenshinUID.git@nonebot2-beta1#egg=GenshinUID
$ cd GenshinUID-nonebot2
$ git pull