Nonebot2查询原神历史卡池小插件
Project description
📖 介绍
本插件用于在机器人上查询原神历史卡池信息
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-gshisbanner
pip
pip install nonebot-plugin-gshisbanner
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_gshisbanner"]
⚙️ 配置
gshisbanner_forward_length: int
# 单次合并转发消息长度(int),默认为10
# 越大单次转发内容更多,合并转发的次数更少,越小单单次转发内容更少,但合并转发的次数更多
# 不要设置为>99或者<0的数字或者任意字符串
gshisbanner_json_url: str
# 历史卡池json列表下载位置
# 可选值
·· 1."banners.52v6.com" #默认
·· 2."genshin-gacha-banners.vercel.app" #vercel代理,国内可能无法直连
·· 3."genshin-gacha-banners.52v6.com" #cloudfare代理,可能会被墙
·· 4."ghproxy.com/https://raw.githubusercontent.com/KeyPJ/genshin-gacha-banners/master/public" #ghproxy代理的raw文件,大多数情况可用
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
[name]历史卡池(num) | ALL | 否 | ALL | name必填,为角色名字或别名;num选填,为单次合并转发次数,若无则为gshisbanner_forward_length的值 |
[version]卡池[num] | ALL | 否 | ALL | version为版本号,如1.3,2.6等,num为1-3,对应上半(中)下半,可不填,如不填则发送该版本全部卡池 |
刷新历史卡池/别名 | 管理员以上 | 否 | ALL | 刷新历史卡池或别名 |
效果图
历史卡池效果图
图1
图2
图3
版本卡池效果图
图1
图2
图3
刷新卡池/别名效果图
鸣谢
genshin-gacha-banners #历史up卡池来源
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_gshisbanner-0.4.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e18c8c04752a97fd5ab6d83b0938e1e4f252a3abc79876dc251f692fb23e06 |
|
MD5 | 2d794d51a8249d16baf466e72f3a1359 |
|
BLAKE2b-256 | 39c93558072b0adef3be8e648b212db4ab9a29242cf066f730b7adbed041be05 |
Close
Hashes for nonebot_plugin_gshisbanner-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6176e505b8a6e4d6b952ab29dc0b819b3f6076fa8a3ab151bbd91dbbf095f6 |
|
MD5 | de32825fe6235d72a07447f811eea659 |
|
BLAKE2b-256 | 27c974b6062af16b154626fc9dd3e63fe1c9db9b73b2e0e362d26aaaf2770ba3 |