Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-gshisbanner

✨ 本插件用于在机器人上查询原神历史卡池信息 ✨

license pypi python
onebot

📖 介绍

本插件用于在机器人上查询原神历史卡池信息(当前仅适用于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."mirror.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代理的文件,大多数情况可用,推荐
send_type: Literal["forward", "pic"]
# 结果发送方式
forward: 使用合并转发的方式发送
pic: 使用图片发送

pic_font_path: str
# 图片发送所需要的字体
# 默认配置了MiSans字体,不满意可以自己更改

也可以自己尝试复制json文件到数据目录{bot_dir}/data/genshin_history

🎉 使用

指令表

用前提示,本插件采用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 help
图2 help
图3 help
版本卡池效果图
图1 help
图2 help
图3 help
刷新卡池/别名效果图 help

鸣谢

FetchData #历史up卡池来源,感谢

Metadata

Release files for nonebot-plugin-gshisbanner 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-gshisbanner 1.3.2
File Size Uploaded
nonebot_plugin_gshisbanner-1.3.2.tar.gz 5.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-gshisbanner 1.3.2
File Interpreter ABI Platform
nonebot_plugin_gshisbanner-1.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 MB

Release files / nonebot_plugin_gshisbanner-1.3.2.tar.gz

Download URL nonebot_plugin_gshisbanner-1.3.2.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
67a10c36f1a4e4d89072e1d29e0dec5f807a159f0664e835e1c4f920e033bc97
BLAKE2b-256 checksum
How to use checksums
4e5da3ed8b1e565ab49f1783a2658b760b16b3ca204e8fba4034b0b620f8f686
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / nonebot_plugin_gshisbanner-1.3.2-py3-none-any.whl

Download URL nonebot_plugin_gshisbanner-1.3.2-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b06337eb7ee7fa6d7adc4cf898be27628f8ab8ee7d89a72e05766cc3a84ff5e8
BLAKE2b-256 checksum
How to use checksums
86b97d9fb6d465d79fc9b7d4e6664a6513b029515aee71c6a939aa3aa4e365fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.3.2 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.5

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page