Skip to main content

Make PJSK like meme stickers in one place

Project description

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

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_meme_stickers-0.2.8.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_meme_stickers-0.2.8-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_meme_stickers-0.2.8.tar.gz.

File metadata

  • Download URL: nonebot_plugin_meme_stickers-0.2.8.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1013-azure

File hashes

Hashes for nonebot_plugin_meme_stickers-0.2.8.tar.gz
Algorithm Hash digest
SHA256 ca4174b704fc541860feae2257121dace0f9ee6e941c1c9c9fc3798c70c347ad
MD5 6809c61914f7e765fb87a95a83ad23e0
BLAKE2b-256 bb698f875e9298929a002028ef4103d1083e4585bf56dd3e9a19830e700f9624

See more details on using hashes here.

File details

Details for the file nonebot_plugin_meme_stickers-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_meme_stickers-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a63239cefb6cd94c5edd035abe475ad00f436c92cc971df8ddfe42a645204061
MD5 daf74139fc6ff0ea860e6ee0086bae1e
BLAKE2b-256 c5f56065911fe524cb79c0a43d12a3eb10681ba0c6d69422b3bd241d66ed2d68

See more details on using hashes here.

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