Skip to main content

QQ群精华消息管理插件 - 支持设置、移除和查看群聊精华消息

Project description

NoneBot Plugin Set Essence Msg

nonebot

✨ QQ 群精华消息管理插件 ✨

license pypi python nonebot


📖 介绍

本插件为 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 已支持

📚 命令列表

设置精华

  • 命令:设精
  • 别名:加精设为精华
  • 权限:群管理员
  • 说明:引用要设置的消息后发送命令

移除精华

  • 命令:移精
  • 别名:删精取消精华移除精华
  • 权限:群管理员
  • 说明:引用已设置为精华的消息后发送命令

🧪 使用示例

设置精华消息

  1. 在群聊中找到要设为精华的消息
  2. 引用(回复)该消息
  3. 发送:
设精

或:

加精

机器人回复:

✅ 已设为精华消息
消息ID: 1684290360

移除精华消息

  1. 引用已被设为精华的消息
  2. 发送:
删精

或:

取消精华

机器人回复:

✅ 已移除精华消息
消息ID: 1684290360

⚙️ 配置

ESSENCE_COOLDOWN=60 # 冷却时间,单位秒,默认为60,设为0关闭冷却,对超级用户、群主、管理员不生效 ESSENCE_ENABLED_GROUPS=[123456, 789012] # 启用插件的群号列表,包含0表示所有群都启用


📄 许可证

本项目采用 MIT 许可证。


🙏 致谢

  • NoneBot2 - 强大的机器人框架
  • OneBot - 聊天机器人应用接口标准

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_set_essence_msg-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file nonebot_plugin_set_essence_msg-0.0.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_set_essence_msg-0.0.2.tar.gz
Algorithm Hash digest
SHA256 07ae4dbcdec38f4e49f0a3d9e37e21382a7a00b132cba244dcd3d376086be1fc
MD5 c4a5272426298c6492f698c614c96dd7
BLAKE2b-256 60d534f54b45462afcc2880df87d0276084684999dc57e08f78ae7821976e069

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_set_essence_msg-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_set_essence_msg-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2693bfc51052ccb25c8f24a28b3d7f0fb15488220431e7b692fa2419f2fc3431
MD5 8a15ec40c00e45b24c217533819b6dbf
BLAKE2b-256 5cd4efee499cdd45b2ac52f8bd3989aa88cbb30fd7d80d45de185697edf8f85f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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