这是一个 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 |
Metadata
Release files for nonebot-plugin-group-relay 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_group_relay-0.1.4.tar.gz | 6.0 kB | Without provenance | Details for nonebot_plugin_group_relay-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_group_relay-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_group_relay-0.1.4-py3-none-any.whl |
Total release size: 12.9 kB
Release files / nonebot_plugin_group_relay-0.1.4.tar.gz
| Download URL | nonebot_plugin_group_relay-0.1.4.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20d04b2118532f1bf3eb42c7cfe1da44508ffdd0d7e8946bb00577decfbf671f
|
|
BLAKE2b-256 checksum How to use checksums |
901e62af674f088ca3969095636f55e866246bdb527ccab76744914b3b9cffd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0
|
Release files / nonebot_plugin_group_relay-0.1.4-py3-none-any.whl
| Download URL | nonebot_plugin_group_relay-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
315fa0a486a6e640ad81965e1821ad5cca0d88b6268a80c6dc18a37a32c5f728
|
|
BLAKE2b-256 checksum How to use checksums |
3fda5d2ac1e21ab4e59b5fed6b6cd20d371f0b26b7ac154b7e53f65d32c73e04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0
|
Security for nonebot-plugin-group-relay 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.