Skip to main content
logo

✨ nonebot-plugin-message-snapper ✨

LICENSE pypi python uv
ruff pre-commit

📖 介绍

Message Snapper 是一个可用于自动生成 QQ 群聊中单条消息伪截图的 NoneBot 插件。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-message-snapper --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-message-snapper --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-message-snapper --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-message-snapper

安装仓库 master 分支

uv add git+https://github.com/Xwei1645/nonebot-plugin-message-snapper@master
pdm
pdm add nonebot-plugin-message-snapper

安装仓库 master 分支

pdm add git+https://github.com/Xwei1645/nonebot-plugin-message-snapper@master
poetry
poetry add nonebot-plugin-message-snapper

安装仓库 master 分支

poetry add git+https://github.com/Xwei1645/nonebot-plugin-message-snapper@master

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

plugins = ["nonebot_plugin_message_snapper"]
使用 nbr 安装(使用 uv 管理依赖可用)

nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2

nbr plugin install nonebot-plugin-message-snapper

使用 pypi 源安装

nbr plugin install nonebot-plugin-message-snapper -i "https://pypi.org/simple"

使用清华源安装

nbr plugin install nonebot-plugin-message-snapper -i "https://pypi.tuna.tsinghua.edu.cn/simple"

⚙️ 配置

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

配置项 必填 默认值 说明
message_snapper_template - 自定义模板文件
message_snapper_font_family - 用于渲染图片的字体家族
message_snapper_group_info_cache_hours 72.0 群信息缓存时长(小时)
message_snapper_member_info_cache_hours 72.0 群成员信息缓存时长(小时)

🎉 使用

指令表

指令 权限 需要@ 范围 说明
'snap' 并引用一条消息 群成员 群聊 生成被引用消息的伪截图

🎨 效果图

没有效果图

Release files for nonebot-plugin-message-snapper 0.2.0

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-message-snapper 0.2.0
File Size Uploaded
nonebot_plugin_message_snapper-0.2.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-message-snapper 0.2.0
File Interpreter ABI Platform
nonebot_plugin_message_snapper-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / nonebot_plugin_message_snapper-0.2.0.tar.gz

Download URL nonebot_plugin_message_snapper-0.2.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bd1deb43b373538ed02ddce36fccc8a74ded8c8857678e487f4e928e1dbc3c4a
BLAKE2b-256 checksum
How to use checksums
2a5c687c5b1791df0d3f50cb79b87ccc2fd8679616da779ab5357f2bdf2f23cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nonebot_plugin_message_snapper-0.2.0-py3-none-any.whl

Download URL nonebot_plugin_message_snapper-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4dfc3a241b3cb4ed4d55f9042d81eaa878eeaccebed3be9315be920301220ad
BLAKE2b-256 checksum
How to use checksums
780510b46c17e949c1d1a5089d31c62e878ed0d6bd8996483b5a7b67fcf1abc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

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