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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_set_essence_msg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2902b484db922670d4c3763492b048a3566af5e19162f9532e4a80b87a86e968
MD5 436cf45d24d55b066468cb66ec34b80b
BLAKE2b-256 9e7ce76d0bf598fa03a4687d2b216155448016c5a7dd29f0e36a133fee7115c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_set_essence_msg-0.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_set_essence_msg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47d8c902115cce899f621315c4e99f3ad86e06972773f6d8a104d0f504e43388
MD5 7d3164710ea26df41c0776ba43b6af0b
BLAKE2b-256 14838a62a1023a1dcb10e4d8efa01a0a97043857fd101f50553e6aab42e4602b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_set_essence_msg-0.0.1-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