QQ群精华消息管理插件 - 支持设置、移除和查看群聊精华消息
Project description
NoneBot Plugin Set Essence Msg
✨ QQ 群精华消息管理插件 ✨
📖 介绍
本插件为 NoneBot2 提供 QQ 群精华消息管理功能,支持:
- ✅ 设置精华消息
- ✅ 移除精华消息
基于 OneBot V11 协议实现, 支持 NapCat。
由AI驱动
📦 安装
使用 nb-cli(推荐)
nb plugin install nonebot-plugin-set-essence-msg
使用 pip
pip install nonebot-plugin-set-essence-msg
🚀 使用说明
前置要求
- 机器人账号必须是群管理员或群主
- OneBot 协议端需支持精华消息相关 API
- NapCat 已支持
📚 命令列表
设置精华
- 命令:
设精 - 别名:
加精、设为精华 - 权限:群管理员
- 说明:引用要设置的消息后发送命令
移除精华
- 命令:
移精 - 别名:
删精、取消精华、移除精华 - 权限:群管理员
- 说明:引用已设置为精华的消息后发送命令
🧪 使用示例
设置精华消息
- 在群聊中找到要设为精华的消息
- 引用(回复)该消息
- 发送:
设精
或:
加精
机器人回复:
✅ 已设为精华消息
消息ID: 1684290360
移除精华消息
- 引用已被设为精华的消息
- 发送:
删精
或:
取消精华
机器人回复:
✅ 已移除精华消息
消息ID: 1684290360
⚙️ 配置
ESSENCE_COOLDOWN=60 # 冷却时间,单位秒,默认为60,设为0关闭冷却,对超级用户、群主、管理员不生效 ESSENCE_ENABLED_GROUPS=[123456, 789012] # 启用插件的群号列表,包含0表示所有群都启用
📄 许可证
本项目采用 MIT 许可证。
🙏 致谢
- NoneBot2 - 强大的机器人框架
- OneBot - 聊天机器人应用接口标准
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_set_essence_msg-0.0.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_set_essence_msg-0.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07ae4dbcdec38f4e49f0a3d9e37e21382a7a00b132cba244dcd3d376086be1fc
|
|
| MD5 |
c4a5272426298c6492f698c614c96dd7
|
|
| BLAKE2b-256 |
60d534f54b45462afcc2880df87d0276084684999dc57e08f78ae7821976e069
|
Provenance
The following attestation bundles were made for nonebot_plugin_set_essence_msg-0.0.2.tar.gz:
Publisher:
publish.yml on zlqd123/nonebot-plugin-set-essence-msg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_set_essence_msg-0.0.2.tar.gz -
Subject digest:
07ae4dbcdec38f4e49f0a3d9e37e21382a7a00b132cba244dcd3d376086be1fc - Sigstore transparency entry: 1560292545
- Sigstore integration time:
-
Permalink:
zlqd123/nonebot-plugin-set-essence-msg@8d8c954b3789b07e527856d70053eb8c57f9cddc -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/zlqd123
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8d8c954b3789b07e527856d70053eb8c57f9cddc -
Trigger Event:
release
-
Statement type:
File details
Details for the file nonebot_plugin_set_essence_msg-0.0.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_set_essence_msg-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2693bfc51052ccb25c8f24a28b3d7f0fb15488220431e7b692fa2419f2fc3431
|
|
| MD5 |
8a15ec40c00e45b24c217533819b6dbf
|
|
| BLAKE2b-256 |
5cd4efee499cdd45b2ac52f8bd3989aa88cbb30fd7d80d45de185697edf8f85f
|
Provenance
The following attestation bundles were made for nonebot_plugin_set_essence_msg-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on zlqd123/nonebot-plugin-set-essence-msg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_set_essence_msg-0.0.2-py3-none-any.whl -
Subject digest:
2693bfc51052ccb25c8f24a28b3d7f0fb15488220431e7b692fa2419f2fc3431 - Sigstore transparency entry: 1560292685
- Sigstore integration time:
-
Permalink:
zlqd123/nonebot-plugin-set-essence-msg@8d8c954b3789b07e527856d70053eb8c57f9cddc -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/zlqd123
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8d8c954b3789b07e527856d70053eb8c57f9cddc -
Trigger Event:
release
-
Statement type: