A NoneBot2 plugin for drawing Manosaba memes
Project description
#まのさばネタバレ(有剧透)
介绍
nonebot-plugin-manosaba-memes 是一个用于生成与游戏「魔法少女的魔女审判」相关的表情包的插件。还在开发中,有好的想法欢迎提 Issue 哦~
功能
安安说
让不同表情的安安举着写了你想说的话的素描本
格式: 安安说 [文本] [表情]
| 示例 1 | 示例 2 |
|---|---|
| 安安说 吾辈现在不想说话 | 安安说 吾辈命令你现在【猛击自己的魔丸一百下】 生气 |
注意:
- 可用表情有:害羞, 生气, 病娇, 无语, 开心
- 中括号中的内容会被渲染成紫色
- 可以在文本中输入“\n”进行换行,也可以使用半角双引号包裹住文本内容后直接进行换行
我当时睡的可香了
生成审判时的选项图片
格式: 【疑问/反驳/伪证/赞同/魔法:[角色]】[文本]
| 示例 1 | 示例 2 |
|---|---|
| 【伪证】我和艾玛不是恋人 【赞同】我们初中的时候就确认关系了 |
【疑问】汉娜和雪莉约会没有邀请我很可疑 |
| 示例 3 | 示例 4 |
| 【魔法:诺亚】液体操控 | 【魔法:雪莉】【怪力】 |
注意:
- 使用
切换角色 [艾玛/希罗]可以切换角色,角色与用户绑定 - 多行文本会被识别为多条选项。选项数量没有上限,但 3 条以内效果最佳
安装
nb plugin install nonebot-plugin-manosaba-memes
使用包管理器安装
在 NoneBot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-manosaba-memes
pdm
pdm add nonebot-plugin-manosaba-memes
poetry
poetry add nonebot-plugin-manosaba-memes
conda
conda install nonebot-plugin-manosaba-memes
打开 NoneBot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_manosaba_memes"]
常见问题
-
为什么生成的审判选项图片的时候,明明输入是分开的多行,生成的图片中全都压到同一个选项里去了?
经测试,QQ 的 iOS 客户端聊天框中的“换行”实际上只加入了一个
\r(正常应为\n或\r\n)。这导致插件中使用的正则的多行匹配没有将换行内容判断为多行,故而生成的图片中也只有一个选项。此问题应当在 QQ 客户端或下一步的协议端中被修复,故本插件不会增加代码来处理。用户可以通过使用其他客户端来避免此问题。
致谢
- 感谢 TY_Ling 提出了写这个插件的想法(其实一开始是他开始写的不过被我抢过来了w)
- 感谢 Mythos_404 编写了高效又好用的绘图库 sketchbook-py
- 感谢 Acacia 制作了魔法少女ノ魔女裁判,第一个能让我玩到凌晨四点的游戏
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_manosaba_memes-0.1.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_manosaba_memes-0.1.4.tar.gz
- Upload date:
- Size: 39.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4de829943061bd9545474b239a2fe73e384e35cdbf4b55bf1992bca338369dba
|
|
| MD5 |
e415b1f05f723e841f8e289e8af2a99c
|
|
| BLAKE2b-256 |
1714b6042b6580508d455f06c0aa3beeeb8aa4af5a6493f306127b745a20ad55
|
Provenance
The following attestation bundles were made for nonebot_plugin_manosaba_memes-0.1.4.tar.gz:
Publisher:
release.yml on zhaomaoniu/nonebot-plugin-manosaba-memes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_manosaba_memes-0.1.4.tar.gz -
Subject digest:
4de829943061bd9545474b239a2fe73e384e35cdbf4b55bf1992bca338369dba - Sigstore transparency entry: 709815266
- Sigstore integration time:
-
Permalink:
zhaomaoniu/nonebot-plugin-manosaba-memes@da950f8663660726adeb9cee509faf951211b5aa -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/zhaomaoniu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@da950f8663660726adeb9cee509faf951211b5aa -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl
- Upload date:
- Size: 39.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64064c5f1b44e81d804a5f693d6dec1367c8208a7589507a468b5ec5533bac21
|
|
| MD5 |
c2bfb860c737f96c0bf80f149cb2420c
|
|
| BLAKE2b-256 |
7c571b05c41c7f726e9a7eadf5dddbb7547ba5995d252c3fb1d7a18768b86692
|
Provenance
The following attestation bundles were made for nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl:
Publisher:
release.yml on zhaomaoniu/nonebot-plugin-manosaba-memes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl -
Subject digest:
64064c5f1b44e81d804a5f693d6dec1367c8208a7589507a468b5ec5533bac21 - Sigstore transparency entry: 709815270
- Sigstore integration time:
-
Permalink:
zhaomaoniu/nonebot-plugin-manosaba-memes@da950f8663660726adeb9cee509faf951211b5aa -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/zhaomaoniu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@da950f8663660726adeb9cee509faf951211b5aa -
Trigger Event:
push
-
Statement type: