Skip to main content

Discord - QQ 消息转发插件

Project description

📖 介绍

将 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.tomlplugins 中添加 nonebot_plugin_discord_message_bridge

⚙️ 配置

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

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

🎉 使用

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

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_discord_message_bridge-1.4.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_discord_message_bridge-1.4.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_discord_message_bridge-1.4.0.tar.gz
Algorithm Hash digest
SHA256 19e678ac51ba756d1869d6087c9ff974541d7c10be37ffa5cf888d90c142b739
MD5 aabd0663b854c26e2651c5119ce3a175
BLAKE2b-256 fa5c74782ec3d669e3f3626e02fe8d00fccb147d8142bf84c70b59f89ac727d3

See more details on using hashes here.

File details

Details for the file nonebot_plugin_discord_message_bridge-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_discord_message_bridge-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d896e15a6c6c0c4a5f600938491970ae01ecd3bd0d028327fa71a553ce4313
MD5 b96ce9df4b7ceb074da58e6898ad884b
BLAKE2b-256 80a607a5e6bccae7781877e3998b0b30852dc96038e7ae68679778a202aff4ba

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