Nonebot2查询原神历史卡池小插件
Project description
📖 介绍
本插件用于在机器人上查询原神历史卡池信息(当前仅适用于qq)
1.0.0版本开始同时支持了onebot v11协议和red协议,欢迎尝鲜
💿 安装
使用 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/data"
#默认,推荐
·· 2."genshin-gacha-banners.vercel.app/data"
#vercel代理,国内可能无法直连
·· 3."genshin-gacha-banners.52v6.com/data"
#cloudfare代理,可能会被墙
·· 4."ghproxy.com/https://raw.githubusercontent.com/KeyPJ/FetchData/main/data/gacha"
##ghproxy代理的raw文件,大多数情况可用,不过不稳定
##前面的"ghproxy.com/"可以不写(如果你是国外机),或者换成你自建的github加速服务均可(需要支持https)
·· 5."jsd.cdn.zzko.cn/gh/KeyPJ/FetchData@main/data/gacha"
##jsdelivr代理的文件,大多数情况可用,推荐
由于仓库原作者暂没更新,有需要的可以将上述4和5中的KeyPJ
更改为forchannot
,或者自己尝试复制json文件到数据目录
🎉 使用
指令表
用前提示,本插件采用on_keyword,不需要带你设置的command_start,当然,如果你非要带,本插件做了一定的处理
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
[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-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a988c8af2d9e47968d60d0ced55ac6abfb0c1560069cfc664308ae13f3979a05 |
|
MD5 | 25ed7afcd3b6b17cb228d16bb9daefa0 |
|
BLAKE2b-256 | 03ea6aeb7626573382e50fd1199cb3cc6243f5a3345385a4ec92d59160375484 |
Close
Hashes for nonebot_plugin_gshisbanner-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44cece9b40209696ca99de3aa650c7b7d7284fced90093e9df17fa70577e777 |
|
MD5 | 5fce6bae7addcc8e3358dd6c8b799b8a |
|
BLAKE2b-256 | be51ec4a060398d6bfce918c3b79170dd16c446063e34efe0dbfc08edc51dc35 |