Skip to main content

在多个 QQ 群之间中继/转发消息的 NoneBot2 插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-group-relay

✨ NoneBot 插件简单描述 ✨

license pypi python

这是一个 nonebot2 插件项目的模板库, 你可以直接使用本模板创建你的 nonebot2 插件项目的仓库

📖 介绍

nonebot-plugin-group-relay 是一个用于 在多个 QQ 群之间中继 / 转发消息 的 NoneBot2 插件。

你可以将若干个群绑定到同一个“中继通道”,插件会自动将指定类型的消息在这些群之间同步,实现类似“跨群群聊”“信息广播”的效果,适合:

  • 多个主题相近的交流群之间共享聊天内容

插件基于 OneBot v11 协议实现,支持常见的 NoneBot2 适配器配置,开箱即用。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot_plugin_group_relay
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot_plugin_group_relay
打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
plugins = ["nonebot_plugin_group_relay"]

⚙️ 配置

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

配置项 必填 默认值 说明
配置项1 配置说明
配置项2 配置说明

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/开启群聊监听 群成员 群聊 在当前群开启消息转发功能,本群的普通消息会被转发到已配置的目标群。
/关闭群聊监听 群成员 群聊 在当前群关闭消息转发功能,停止向目标群转发本群消息。
/添加监听群组 <群号> 群成员 群聊 为当前群添加一个目标群,用于接收本群转发的消息。示例:/添加监听群组 123456789
/删除监听群组 <群号> 群成员 群聊 从当前群的目标群列表中移除一个群。示例:/删除监听群组 123456789

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_group_relay-0.1.3.tar.gz (5.9 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_group_relay-0.1.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_group_relay-0.1.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_group_relay-0.1.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

File hashes

Hashes for nonebot_plugin_group_relay-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7a6746c4b2f3bfebaf83031e178fba83b9ee2d116bab0fa5f1cae56fb7847e9f
MD5 dcb7a9ffe99e4b3ec003e6e90c8999b2
BLAKE2b-256 cd96326e62c1e9d02e7b1614ae3d242ad34de5ac4d91cdcd300333f69e291ac6

See more details on using hashes here.

File details

Details for the file nonebot_plugin_group_relay-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_group_relay-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d331ce2b261b5144810e3b7a90a982cc6e1e14db1ebeacf76a2319daee48039
MD5 2eeebb331718b6bb6a95f0c9d3248fd6
BLAKE2b-256 57fc689293c21b662246e2d3016af54c71328e847ecb9188d736d8e3392b806b

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