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_DATA_DIR ./data/meme_stickers 插件数据存放的位置
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.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.1.tar.gz (34.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.1-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_meme_stickers-0.2.1.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for nonebot_plugin_meme_stickers-0.2.1.tar.gz
Algorithm Hash digest
SHA256 861f414912f18fbe1aa72ed635fcf796d26bd8b3409336ee719ad0922be08506
MD5 4b81e6ed8a71eac0b226b19ab81f6a46
BLAKE2b-256 cbbcb4e6905259f659ad4f5695e3457a2a09faf172ce98dd0999fa656bba4d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_meme_stickers-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12f2a47aa62dd9618dfc3a3f5a06e2610ca5ea49204eabb79c650d824a1b3c6e
MD5 dde5b71e4600c4ecc67e7bdaecfef81f
BLAKE2b-256 126b24824276800dc42744858dea253d4222e110131593059b5f948d1e6fde31

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