Skip to main content

📖 介绍

将 QQ 与 Discord 的消息互通,并支持转发图片、回复、提及(@)、文件、视频

💿 安装

先决条件

在安装之前,请确保您的环境符合以下条件:

  1. 拥有一个能够运行的 Python,版本在 3.9 及以上(本插件部分版本可能需要 3.12)
  2. 已经安装并配置好 pip 等任意一款 Python3 包管理器
  3. 已经创建或拥有了一个 NoneBot2 机器人项目

安装

通过文件安装
  1. 在您的 pyproject.toml 中配置一个插件目录
plugin_dirs = ["src/plugins"]

您需要确保此目录存在,下文将使用 插件目录 代指此目录。

  1. 下载本仓库
  2. 将 src 文件夹中的 nonebot_plugin_discord_message_bridge 文件夹解压到插件目录
  3. 安装依赖

进入 requirements.txt 同目录下执行

pip install -r requirements.txt
通过 PIP 安装
  1. 使用 pip 安装插件
pip install nonebot-plugin-discord-message-bridge
  1. 修改 pyproject.toml 在 plugins 中添加 nonebot_plugin_discord_message_bridge

⚙️ 配置

请在机器人目录中创建一个 .env 文件(或编辑对应 .env 文件,可能为 .env.dev 或 .env.prod),并参考 🔗config.py 的内容进行修改

  • 需要 🔗创建一个 Discord Bot 并邀请进入服务器中,用于接收消息
  • 需要在 Discord 的 「服务器设置 → 整合」 内为需要转发的频道创建一个 Webhook ,并填入配置文件中,用于发送 QQ 内的消息

🎉 使用

  • 在 QQ 群内收到一条消息时会启动 Discord 接收端,转发即可正常使用
  • 用户在 Discord 内发送绑定命令 (默认为 ~) 后可转发提及(@)

Metadata

Release files for nonebot-plugin-discord-message-bridge 1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-discord-message-bridge 1.4.2
File Size Uploaded Provenance Actions
nonebot_plugin_discord_message_bridge-1.4.2.tar.gz 29.5 kB Without provenance Details for nonebot_plugin_discord_message_bridge-1.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-discord-message-bridge 1.4.2
File Interpreter ABI Platform Actions
nonebot_plugin_discord_message_bridge-1.4.2-py3-none-any.whl Python 3 none any Details for nonebot_plugin_discord_message_bridge-1.4.2-py3-none-any.whl

Total release size: 61.6 kB

Release files / nonebot_plugin_discord_message_bridge-1.4.2.tar.gz

Download URL nonebot_plugin_discord_message_bridge-1.4.2.tar.gz
Size 29.5 kB
Tags Source
SHA-256 checksum
How to use checksums
977481f319c526017a398d8bb6ecb66913835a3ad51d5d901af325cb10424cee
BLAKE2b-256 checksum
How to use checksums
fa6e43a129218f21991ef48490c5da10be260fa37ad3751b0f1ca738979d6e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / nonebot_plugin_discord_message_bridge-1.4.2-py3-none-any.whl

Download URL nonebot_plugin_discord_message_bridge-1.4.2-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d1e197a539fec924f0c814b7a4ba94533e7270d1f566c3c94ca151348496d1f
BLAKE2b-256 checksum
How to use checksums
858e77c2d2d067ec4b0ce1ed4c511fcc8944e4ced467bfb629d25dc2e21937c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for nonebot-plugin-discord-message-bridge 1.4.2

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.

Release history Release notifications | RSS feed

This release

1.4.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page