Skip to main content
NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-Meme-Stickers

✨ 一站式制作 PJSK 样式表情包 ✨

python pdm-managed wakatime
Pydantic Version 1 Or 2 license pypi pypi download
NoneBot Registry Supported Adapters

📖 介绍

贴纸包

示例图(点击展开)

help
help

生成贴纸(交互模式与短指令)

示例图(点击展开)

help help help

生成贴纸(命令形式)

示例图(点击展开)

help

启用、禁用贴纸包

示例图(点击展开)

help help

💿 安装

以下提到的方法 任选其一 即可

[推荐] 使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-meme-stickers
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-meme-stickers
pdm
pdm add nonebot-plugin-meme-stickers
poetry
poetry add nonebot-plugin-meme-stickers
conda
conda install nonebot-plugin-meme-stickers

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分的 plugins 项里追加写入

[tool.nonebot]
plugins = [
    # ...
    "nonebot_plugin_meme_stickers"
]

⚙️ 配置

在 nonebot2 项目的 .env 文件中添加下表中的必填配置

配置项 必填 默认值 说明
PROXY 否 无 插件网络请求使用的代理地址
MEME_STICKERS_GITHUB_URL_TEMPLATE 否 ... 插件请求 GitHub 源时使用的链接模板,可用变量参考 这里
MEME_STICKERS_RETRY_TIMES 否 3 插件每个网络请求的重试次数
MEME_STICKERS_REQ_CONCURRENCY 否 8 插件进行批量网络请求时每批的并行数
MEME_STICKERS_REQ_TIMEOUT 否 5 插件网络请求超时(秒)
MEME_STICKERS_AUTO_UPDATE 否 True 是否在启动时自动更新一遍贴纸包
MEME_STICKERS_FORCE_UPDATE 否 False 在启用自动更新贴纸包时,控制自动更新是否执行强制更新
MEME_STICKERS_PROMPT_RETRIES 否 3 交互模式时输入非法后连续询问的最高次数(秒)
MEME_STICKERS_PROMPT_TIMEOUT 否 30 交互模式时每次询问的超时时间(秒)
MEME_STICKERS_DEFAULT_STICKER_BACKGROUND 否 FFFFFF 当图片格式为 jpeg 时,默认的背景底色
MEME_STICKERS_DEFAULT_STICKER_IMAGE_FORMAT 否 png 生成贴纸时默认使用的图片格式

🎉 使用

发送 meme-stickers 指令获取使用帮助吧!

指令帮助(点击展开)

[!NOTE] 以下内容仅供参考,实际内容请以 meme-stickers 输出为准

help

🏆 贡献

如果你想制作自定义贴纸包,请参考 meme-stickers-hub
也欢迎把你的贴纸包贡献给我们~

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com

💡 鸣谢

MeetWq

  • 从 pil-utils 抄过来的 skia 文本绘制

💰 赞助

赞助我

感谢大家的赞助!你们的赞助将是我继续创作的动力!

📝 更新日志

0.2.8

  • 修复潜在 Bug

0.2.7

  • 修改 meme-stickers list 命令的逻辑,默认不显示不可用贴纸包,删除 --no-unavailable 选项,由 --all 取代

0.2.6

  • 将 meme-stickers list 命令放开给普通用户使用(使用其他选项仍需超级管理员权限)

0.2.5

  • 修复上个版本中的潜在 bug
  • 贴纸包在真正更新文件之前其仍处于可用状态

0.2.4

  • 贴纸包的更新中状态会从开始下载文件持续到文件更新完成了,而不是仅从文件更新阶段持续到结束

0.2.3

  • 修复一处失误造成的 Bug (#3)

0.2.2

  • 修复不兼容 Pydantic 1 的问题

0.2.1

  • 继续刚 localstore

0.2.0

  • 小幅代码重构,修复了一些潜在 Bug
  • 修复贴纸包列表卡片宽度不正确的问题
  • 贴纸包现在支持使用与更新不在贴纸包文件夹内的文件了,
    此功能设计初衷是如果各贴纸包有共享资源,可以将资源放在贴纸包文件夹外,以减少重复资源占用的空间,
    缺点是如果有被贴纸包弃用的资源不会被自动删除, 请各位合理使用此特性

0.1.2

  • 兼容 localstore 插件,当 Bot 工作目录下不存在 data 文件夹且 localstore 插件可用时使用 localstore 获取插件数据存储路径

0.1.1

  • 向 nb-cli 添加 stickers-gen-checksum 脚本,用于在数据目录的所有贴纸包下生成 checksum.json

Metadata

Release files for nonebot-plugin-meme-stickers 0.2.8

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-meme-stickers 0.2.8
File Size Uploaded
nonebot_plugin_meme_stickers-0.2.8.tar.gz 35.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-meme-stickers 0.2.8
File Interpreter ABI Platform
nonebot_plugin_meme_stickers-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 79.5 kB

Release files / nonebot_plugin_meme_stickers-0.2.8.tar.gz

Download URL nonebot_plugin_meme_stickers-0.2.8.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ca4174b704fc541860feae2257121dace0f9ee6e941c1c9c9fc3798c70c347ad
BLAKE2b-256 checksum
How to use checksums
bb698f875e9298929a002028ef4103d1083e4585bf56dd3e9a19830e700f9624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1013-azure

Release files / nonebot_plugin_meme_stickers-0.2.8-py3-none-any.whl

Download URL nonebot_plugin_meme_stickers-0.2.8-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a63239cefb6cd94c5edd035abe475ad00f436c92cc971df8ddfe42a645204061
BLAKE2b-256 checksum
How to use checksums
c5f56065911fe524cb79c0a43d12a3eb10681ba0c6d69422b3bd241d66ed2d68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1013-azure

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.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