版本
v0.2.0 - 多平台适配( 基于 plugin-alconna )
v0.1.4 - 适配 nonebot 正式版
v0.1.3 - 修复部分 bug (新增若干bug), 更灵活的参数获取(可使用回复中的图片), 优化(或许)了点 gray 模式合成的图片的效果
v0.1.2 - 可指定分离时的里图的亮度增强值
v0.1.0 - 增加分离幻影坦克功能
v0.0.5 - 适配了 rc 版本
安装
通过pip或nb安装,也可使用 pdm/poetry 等依赖管理工具添加,方式参考使用 pip 的安装方法 ;
命令
- 安装完在
pyproject.toml中手动添加插件名以加载插件,或在bot.py中 (如果有) 使用nonebot.load_plugin加载
pip install nonebot_plugin_miragetank
- 使用
nb-cli, 需要在 bot 项目根目录下执行
nb plugin install nonebot_plugin_miragetank
功能
生成幻影坦克图(在黑白背景下显示不同的图) 与 分离幻影坦克图
合成幻影坦克图示例
分离幻影坦克图示例
从回复的消息中获取图片进行合成
命令
-
幻影坦克/miragetank/合成幻影坦克/生成幻影坦克 -
分离幻影坦克
⚠ 需要 nonebot2 配置的命令前缀,如果没配置默认 / ,即发送/miragetank可触发
合成图片需要参数:
- 合成模式:
gray或color(后者合成的里图是彩色的) - 至少两张图片
- 可随时取消命令(发送
取消即可)
分离图片需要参数:
-
一张幻影坦克图片
-
可选参数:需要增强的亮度,取值建议 1~6,值越大分离出的里图(即黑底状态下的图片)的亮度越高,默认是 2 ,便于查看
示例(不包含交互过程)
-
/合成幻影坦克 color [图片1] [图片2] -
/合成幻影坦克 [图片1] [图片2] -
/合成幻影坦克 gray -
/分离幻影坦克 [图片] -
/分离幻影坦克 [图片] 5.5 -
/分离幻影坦克 [图片] 3.3 -
/分离幻影坦克 4.9
致谢
幻影坦克合成算法来自 MirageTankGO
Metadata
Release files for nonebot-plugin-miragetank 0.2.2
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 | |
|---|---|---|---|---|
| nonebot_plugin_miragetank-0.2.2.tar.gz | 18.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_miragetank-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.8 kB
Release files / nonebot_plugin_miragetank-0.2.2.tar.gz
| Download URL | nonebot_plugin_miragetank-0.2.2.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dac79da8c45ea5c53b407e40a0d16ecfaaa63bc3be5d15b99bafa54eb0ba1181
|
|
BLAKE2b-256 checksum How to use checksums |
21ba28094b32604a1cc7f022e20f9dc1ef1acb7ccbacd714cee3f1bff78b1196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.13.2 Windows/11
|
Release files / nonebot_plugin_miragetank-0.2.2-py3-none-any.whl
| Download URL | nonebot_plugin_miragetank-0.2.2-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae1e6779c7df882466d5b63738e9b7b89e5419ef612ffbcb6cdebbb5f16cac57
|
|
BLAKE2b-256 checksum How to use checksums |
65b62ae80ce1be380973c92df9bc8279bd567484b98185e4be1f8c452cc76e44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.13.2 Windows/11
|
Security for nonebot-plugin-miragetank 0.2.2
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.