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.1.tar.gz (6.3 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_group_relay-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 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.1.tar.gz
Algorithm Hash digest
SHA256 2c3821334e7ee74bcdf803d7a4a6aa5197c21bbb8252bcc1bdf0070bc10215eb
MD5 d777b481e765ee9953eccab1be30f44e
BLAKE2b-256 7b901335f3442045661babf4e4afb564c6c43ca96ea30df9fe0ef800b84c404d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_group_relay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3691deb80cd60a48e97ade1fb4d324557512911d323e8199079000bc979d497
MD5 a84cd3874dbbf31aed71f4f689e214e3
BLAKE2b-256 2887f3a2ac75064a8abc2c5bba70c751781f31960b6861efc389684a6958c3de

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