在多个 QQ 群之间中继/转发消息的 NoneBot2 插件
Project description
这是一个 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
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
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_group_relay-0.1.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_group_relay-0.1.4.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20d04b2118532f1bf3eb42c7cfe1da44508ffdd0d7e8946bb00577decfbf671f
|
|
| MD5 |
a488622be5f3b4c559184831ebafaa28
|
|
| BLAKE2b-256 |
901e62af674f088ca3969095636f55e866246bdb527ccab76744914b3b9cffd5
|
File details
Details for the file nonebot_plugin_group_relay-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_group_relay-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
315fa0a486a6e640ad81965e1821ad5cca0d88b6268a80c6dc18a37a32c5f728
|
|
| MD5 |
a4d94f44862e00a3db636117f13fb6a4
|
|
| BLAKE2b-256 |
3fda5d2ac1e21ab4e59b5fed6b6cd20d371f0b26b7ac154b7e53f65d32c73e04
|