Nonebot-Plugin-Tsugu-Frontend
介绍
基于 tsugu-python-frontend 的 tsugu-bangdream-bot 插件, 用于查询 BanGDream 手游的相关信息
使用了 NoneBot-Plugin-Alconna 实现了跨平台
功能
请参考 关于 Tsugu V3.0
安装方法
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-tsugu-frontend
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-tsugu-frontend
pdm
pdm add nonebot-plugin-tsugu-frontend
poetry
poetry add nonebot-plugin-tsugu-frontend
conda
conda install nonebot-plugin-tsugu-frontend
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_steam_info"]
配置
| 配置项 | 值 | 说明 |
|---|---|---|
| TSUGU_BACKEND | "http://tsugubot.com:8080" | Tsugu 后端地址 |
| TSUGU_USER_DATA_BACKEND | "http://tsugubot.com:8080" | Tsugu 用户数据后端地址 |
| TSUGU_BACKEND_USE_PROXY | False | 是否使用代理访问 Tsugu 后端 |
| TSUGU_USER_DATA_BACKEND_USE_PROXY | False | 是否使用代理访问 Tsugu 用户数据后端 |
| TSUGU_SUBMIT_CAR_NUMBER_USE_PROXY | False | 是否使用代理提交车牌号 |
| TSUGU_VERIFY_PLAYER_BIND_USE_PROXY | False | 是否使用代理验证玩家绑定,取决于对 Bestdori 的访问性 |
| TSUGU_PROXY_URL | "http://localhost:7890" | 代理地址 |
| TSUGU_TOKEN_NAME | "Tsugu" | 车站 Token 名称 |
| TSUGU_BANDORI_STATION_TOKEN | "ZtV4EX2K9Onb" | 车站 Token |
| TSUGU_USE_EASY_BG | True | 是否使用简易背景 |
| TSUGU_COMPRESS | True | 是否压缩图片 |
| TSUGU_PLATFORM | "red" | 用于绑定/获取玩家数据的平台,一般 QQ 为 red,其他平台可能需要根据 Koishi 适配器的具体实现来修改 |
| TSUGU_BAN_GACHA_SIMULATE_GROUP_DATA | [] | 禁止模拟抽卡的群 ID |
| TSUGU_CAR_NUMBER_FORWARDING | True | 是否启用车牌转发 |
| TSUGU_CHANGE_MAIN_SERVER | True | 是否启用更改主服务器 |
| TSUGU_SWITCH_CAR_FORWARDING | True | 是否启用切换车牌转发 |
| TSUGU_BIND_PLAYER | True | 是否启用绑定玩家 |
| TSUGU_CHANGE_SERVER_LIST | True | 是否启用更改服务器列表 |
| TSUGU_PLAYER_STATUS | True | 是否启用玩家状态 |
| TSUGU_HELP | True | 是否启用帮助 |
鸣谢
- tsugu-bangdream-bot Tsugu 本体
- tsugu-python-frontend Tsugu Python 前端库
- nonebot-plugin-alconna 跨平台支持
- nonebot-plugin-userinfo 跨平台用户信息获取
Metadata
Release files for nonebot-plugin-tsugu-frontend 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_tsugu_frontend-0.1.1.tar.gz | 4.1 kB | Without provenance | Details for nonebot_plugin_tsugu_frontend-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_tsugu_frontend-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_tsugu_frontend-0.1.1-py3-none-any.whl |
Total release size: 9.1 kB
Release files / nonebot_plugin_tsugu_frontend-0.1.1.tar.gz
| Download URL | nonebot_plugin_tsugu_frontend-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f92046cfd4fd4e4ecc608455ba0ac32edc63c3b1b6b8b8762dc8ae5acfe4983
|
|
BLAKE2b-256 checksum How to use checksums |
63be409d3d961ba2d4fc4396cb0c63b8791627803313a41fa47a5653c59230f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.2 CPython/3.10.12 Linux/6.5.0-1018-azure
|
Release files / nonebot_plugin_tsugu_frontend-0.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_tsugu_frontend-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
278453594cbc01d4c2a3927db5343e8412ed9b427be804b5505c5cd2fc085241
|
|
BLAKE2b-256 checksum How to use checksums |
659cb52270645e1078759fe0969b00212df25e142f6722c271907e45abba9a57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.2 CPython/3.10.12 Linux/6.5.0-1018-azure
|
Security for nonebot-plugin-tsugu-frontend 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.