xxtg666 / nonebot-plugin-discord-message-bridge

✨ Discord - QQ 消息转发插件 ✨
GNU General Public License v3.0
6 stars 1 forks source link

license pypi python Code style: black

📖 介绍

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

💿 安装

先决条件

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

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

安装

通过文件安装 1. 在您的 pyproject.toml 中配置一个插件目录 ```toml plugin_dirs = ["src/plugins"] ``` > 您需要确保此目录存在,下文将使用 `插件目录` 代指此目录。 2. [下载本仓库](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/archive/refs/heads/main.zip) 3. 将 `nonebot-plugin-discord-message-bridge-main` 文件夹中的 `nonebot_plugin_discord_message_bridge` 文件夹解压到插件目录 4. 安装依赖 > 进入 `requirements.txt` 同目录下执行 ```bash pip install -r requirements.txt ```
通过 PIP 安装 1. 使用 pip 安装插件 ```bash pip install nonebot-plugin-discord-message-bridge ``` 2. 修改 `pyproject.toml` 在 `plugins` 中添加 `nonebot_plugin_discord_message_bridge`

⚙️ 配置

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

🎉 使用