Skip to main content

基于 tsugu-python-frontend 的 tsugu-bangdream-bot NoneBot 插件

Project description

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 是否启用帮助

鸣谢

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_tsugu_frontend-0.1.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page