Skip to main content

A NoneBot2 plugin for drawing Manosaba memes

Project description

nonebot

nonebot-plugin-manosaba-memes

NoneBot2 魔法少女的魔女审判表情包生成插件 ✨

license Python NoneBot

#まのさばネタバレ(有剧透)

介绍

nonebot-plugin-manosaba-memes 是一个用于生成与游戏「魔法少女的魔女审判」相关的表情包的插件。还在开发中,有好的想法欢迎提 Issue 哦~

功能

安安说

让不同表情的安安举着写了你想说的话的素描本

格式: 安安说 [文本] [表情]

示例 1 示例 2
安安说 吾辈现在不想说话 安安说 吾辈命令你现在【猛击自己的魔丸一百下】 生气
anan_says_example anan_says_example2

注意:

  1. 可用表情有:害羞, 生气, 病娇, 无语, 开心
  2. 中括号中的内容会被渲染成紫色
  3. 可以在文本中输入“\n”进行换行,也可以使用半角双引号包裹住文本内容后直接进行换行

我当时睡的可香了

生成审判时的选项图片

格式: 【疑问/反驳/伪证/赞同/魔法:[角色]】[文本]

示例 1 示例 2
【伪证】我和艾玛不是恋人
【赞同】我们初中的时候就确认关系了
【疑问】汉娜和雪莉约会没有邀请我很可疑
trail_example1 trail_example2
示例 3 示例 4
【魔法:诺亚】液体操控 【魔法:雪莉】【怪力】
trail_example3 trail_example4

注意:

  1. 使用 切换角色 [艾玛/希罗] 可以切换角色,角色与用户绑定
  2. 多行文本会被识别为多条选项。选项数量没有上限,但 3 条以内效果最佳

安装

使用 nb-cli 安装 在 NoneBot2 项目的根目录下打开命令行, 输入以下指令即可安装
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"]

常见问题

  1. 为什么生成的审判选项图片的时候,明明输入是分开的多行,生成的图片中全都压到同一个选项里去了?

    经测试,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

nonebot_plugin_manosaba_memes-0.1.4.tar.gz (39.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl (39.6 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_manosaba_memes-0.1.4.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_manosaba_memes-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4de829943061bd9545474b239a2fe73e384e35cdbf4b55bf1992bca338369dba
MD5 e415b1f05f723e841f8e289e8af2a99c
BLAKE2b-256 1714b6042b6580508d455f06c0aa3beeeb8aa4af5a6493f306127b745a20ad55

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_manosaba_memes-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 64064c5f1b44e81d804a5f693d6dec1367c8208a7589507a468b5ec5533bac21
MD5 c2bfb860c737f96c0bf80f149cb2420c
BLAKE2b-256 7c571b05c41c7f726e9a7eadf5dddbb7547ba5995d252c3fb1d7a18768b86692

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page