nonebot-plugin-discord-message-bridge 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nonebot_plugin_discord_message_bridge-1.0.0/LICENSE +21 -0
- nonebot_plugin_discord_message_bridge-1.0.0/PKG-INFO +99 -0
- nonebot_plugin_discord_message_bridge-1.0.0/README.md +84 -0
- nonebot_plugin_discord_message_bridge-1.0.0/config.py +81 -0
- nonebot_plugin_discord_message_bridge-1.0.0/nonebot_plugin_discord_message_bridge.egg-info/PKG-INFO +99 -0
- nonebot_plugin_discord_message_bridge-1.0.0/nonebot_plugin_discord_message_bridge.egg-info/SOURCES.txt +9 -0
- nonebot_plugin_discord_message_bridge-1.0.0/nonebot_plugin_discord_message_bridge.egg-info/dependency_links.txt +1 -0
- nonebot_plugin_discord_message_bridge-1.0.0/nonebot_plugin_discord_message_bridge.egg-info/requires.txt +5 -0
- nonebot_plugin_discord_message_bridge-1.0.0/nonebot_plugin_discord_message_bridge.egg-info/top_level.txt +1 -0
- nonebot_plugin_discord_message_bridge-1.0.0/pyproject.toml +19 -0
- nonebot_plugin_discord_message_bridge-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 xxtg666
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nonebot-plugin-discord-message-bridge
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Discord - QQ 消息转发插件
|
|
5
|
+
Author-email: xxtg666 <xxtg666@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: nonebot2
|
|
11
|
+
Requires-Dist: nonebot-adapter-onebot
|
|
12
|
+
Requires-Dist: discord-py
|
|
13
|
+
Requires-Dist: nonebot2[fastapi]
|
|
14
|
+
Requires-Dist: httpx
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
<div align="center">
|
|
19
|
+
|
|
20
|
+
<a href="./LICENSE">
|
|
21
|
+
<img src="https://img.shields.io/github/license/xxtg666/nonebot-plugin-discord-message-bridge.svg?style=for-the-badge" alt="license">
|
|
22
|
+
</a>
|
|
23
|
+
|
|
24
|
+
<img src="https://img.shields.io/badge/python-3.10+-blue.svg?style=for-the-badge" alt="python">
|
|
25
|
+
|
|
26
|
+
<a href="https://github.com/psf/black">
|
|
27
|
+
<img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge" alt="Code style: black">
|
|
28
|
+
</a>
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
## 📖 介绍
|
|
33
|
+
|
|
34
|
+
将 QQ 与 Discord 的消息互通,并支持转发**图片**、**回复**、**提及(@)**
|
|
35
|
+
|
|
36
|
+
## 💿 安装
|
|
37
|
+
|
|
38
|
+
### 1. 创建一个新的 NoneBot2 机器人
|
|
39
|
+
|
|
40
|
+
> 如果您需要将本插件安装到现有的机器人,可忽略此步骤
|
|
41
|
+
|
|
42
|
+
注意在 `pyproject.toml` 中配置一个 `plugin_dirs`,可以参考以下设置:
|
|
43
|
+
|
|
44
|
+
```toml
|
|
45
|
+
plugin_dirs = ["src/plugins"]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
> [!TIP]
|
|
49
|
+
> 在配置完成后您需要在机器人工作目录新建此文件夹,下文将使用 `插件目录` 代指此目录。
|
|
50
|
+
|
|
51
|
+
### 2. 安装插件
|
|
52
|
+
|
|
53
|
+
您可以选择以下两种安装方式
|
|
54
|
+
|
|
55
|
+
<details>
|
|
56
|
+
<summary>使用 Git 子模块安装</summary>
|
|
57
|
+
|
|
58
|
+
> 此方法需要您能够使用 git 并已经在机器人目录下初始化 git 仓库
|
|
59
|
+
|
|
60
|
+
请将以下指令的 `src/plugins/` 替换为您的插件目录
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git submodule add https://github.com/xxtg666/nonebot-plugin-discord-message-bridge src/plugins/nonebot_plugin_discord_message_bridge
|
|
64
|
+
git submodule update --init --recursive
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
</details>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary>使用文件</summary>
|
|
72
|
+
|
|
73
|
+
1. [下载本仓库](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/archive/refs/heads/main.zip)
|
|
74
|
+
2. 将 `nonebot-plugin-discord-message-bridge-main` 文件夹解压到插件目录,并重命名为 `nonebot_plugin_discord_message_bridge`
|
|
75
|
+
|
|
76
|
+
</details>
|
|
77
|
+
|
|
78
|
+
### 3. 安装依赖
|
|
79
|
+
|
|
80
|
+
经过步骤二后,您的插件应该被安装到了 `插件目录/nonebot_plugin_discord_message_bridge` 中,本步骤您需要进入 `插件目录/nonebot_plugin_discord_message_bridge` 安装本插件所需依赖
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pip install -r requirements.txt
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
如果您使用了其他包管理器,请参考您所使用的包管理器的使用方法安装所需依赖
|
|
87
|
+
|
|
88
|
+
## ⚙️ 配置
|
|
89
|
+
|
|
90
|
+
请修改在机器人目录中创建一个 `.env` 文件(或编辑对应 `.env` 文件,可能为 `.env.dev` 或 `.env.prod`),并参考 [config.py](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/blob/main/config.py) 的内容进行修改
|
|
91
|
+
|
|
92
|
+
- 需要 [🔗创建一个 Discord Bot](https://discord.com/developers/applications) 并邀请进入服务器中,用于接收消息
|
|
93
|
+
- 需要在 Discord 的 「服务器设置 → 整合」 内为需要转发的频道创建一个 Webhook ,并填入配置文件中,用于发送 QQ 内的消息
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## 🎉 使用
|
|
97
|
+
|
|
98
|
+
- 在 QQ 群内收到一条消息时会启动 Discord 接收端,转发即可正常使用
|
|
99
|
+
- 用户在 Discord 内发送绑定命令 (默认为 `~`) 后可转发提及(@)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
<a href="./LICENSE">
|
|
6
|
+
<img src="https://img.shields.io/github/license/xxtg666/nonebot-plugin-discord-message-bridge.svg?style=for-the-badge" alt="license">
|
|
7
|
+
</a>
|
|
8
|
+
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.10+-blue.svg?style=for-the-badge" alt="python">
|
|
10
|
+
|
|
11
|
+
<a href="https://github.com/psf/black">
|
|
12
|
+
<img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge" alt="Code style: black">
|
|
13
|
+
</a>
|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
## 📖 介绍
|
|
18
|
+
|
|
19
|
+
将 QQ 与 Discord 的消息互通,并支持转发**图片**、**回复**、**提及(@)**
|
|
20
|
+
|
|
21
|
+
## 💿 安装
|
|
22
|
+
|
|
23
|
+
### 1. 创建一个新的 NoneBot2 机器人
|
|
24
|
+
|
|
25
|
+
> 如果您需要将本插件安装到现有的机器人,可忽略此步骤
|
|
26
|
+
|
|
27
|
+
注意在 `pyproject.toml` 中配置一个 `plugin_dirs`,可以参考以下设置:
|
|
28
|
+
|
|
29
|
+
```toml
|
|
30
|
+
plugin_dirs = ["src/plugins"]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> [!TIP]
|
|
34
|
+
> 在配置完成后您需要在机器人工作目录新建此文件夹,下文将使用 `插件目录` 代指此目录。
|
|
35
|
+
|
|
36
|
+
### 2. 安装插件
|
|
37
|
+
|
|
38
|
+
您可以选择以下两种安装方式
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary>使用 Git 子模块安装</summary>
|
|
42
|
+
|
|
43
|
+
> 此方法需要您能够使用 git 并已经在机器人目录下初始化 git 仓库
|
|
44
|
+
|
|
45
|
+
请将以下指令的 `src/plugins/` 替换为您的插件目录
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
git submodule add https://github.com/xxtg666/nonebot-plugin-discord-message-bridge src/plugins/nonebot_plugin_discord_message_bridge
|
|
49
|
+
git submodule update --init --recursive
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
</details>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<details>
|
|
56
|
+
<summary>使用文件</summary>
|
|
57
|
+
|
|
58
|
+
1. [下载本仓库](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/archive/refs/heads/main.zip)
|
|
59
|
+
2. 将 `nonebot-plugin-discord-message-bridge-main` 文件夹解压到插件目录,并重命名为 `nonebot_plugin_discord_message_bridge`
|
|
60
|
+
|
|
61
|
+
</details>
|
|
62
|
+
|
|
63
|
+
### 3. 安装依赖
|
|
64
|
+
|
|
65
|
+
经过步骤二后,您的插件应该被安装到了 `插件目录/nonebot_plugin_discord_message_bridge` 中,本步骤您需要进入 `插件目录/nonebot_plugin_discord_message_bridge` 安装本插件所需依赖
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install -r requirements.txt
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
如果您使用了其他包管理器,请参考您所使用的包管理器的使用方法安装所需依赖
|
|
72
|
+
|
|
73
|
+
## ⚙️ 配置
|
|
74
|
+
|
|
75
|
+
请修改在机器人目录中创建一个 `.env` 文件(或编辑对应 `.env` 文件,可能为 `.env.dev` 或 `.env.prod`),并参考 [config.py](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/blob/main/config.py) 的内容进行修改
|
|
76
|
+
|
|
77
|
+
- 需要 [🔗创建一个 Discord Bot](https://discord.com/developers/applications) 并邀请进入服务器中,用于接收消息
|
|
78
|
+
- 需要在 Discord 的 「服务器设置 → 整合」 内为需要转发的频道创建一个 Webhook ,并填入配置文件中,用于发送 QQ 内的消息
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## 🎉 使用
|
|
82
|
+
|
|
83
|
+
- 在 QQ 群内收到一条消息时会启动 Discord 接收端,转发即可正常使用
|
|
84
|
+
- 用户在 Discord 内发送绑定命令 (默认为 `~`) 后可转发提及(@)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from nonebot import get_plugin_config
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Config(BaseModel):
|
|
6
|
+
token: str
|
|
7
|
+
webhook_url: str
|
|
8
|
+
webhook_id: int
|
|
9
|
+
guild_id: int
|
|
10
|
+
channel_id: int
|
|
11
|
+
qq_id: int
|
|
12
|
+
log_file: str = "data/dmb_log.txt"
|
|
13
|
+
qq_bind_file: str = "data/discord_message_bridge_qq_bind.json"
|
|
14
|
+
qq_bind_file_2: str = "data/discord_message_bridge_qq_bind_2.json"
|
|
15
|
+
qq_forward_failed: str = "cry"
|
|
16
|
+
max_reply_preview_length: int = 100
|
|
17
|
+
http_proxy: str = "http://127.0.0.1:7890"
|
|
18
|
+
prefix: str = "[Discord] "
|
|
19
|
+
bot_name: str = "Discord Message Bridge"
|
|
20
|
+
qq_sudo_format: str = "/sudo {Q} {C}"
|
|
21
|
+
qq_command: str = "dmb"
|
|
22
|
+
discord_command_prefix: str = "~"
|
|
23
|
+
qq_command_prefix: str = "."
|
|
24
|
+
|
|
25
|
+
config = get_plugin_config(Config)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# 网络代理地址,若不需要请留空
|
|
29
|
+
HTTP_PROXY = config.http_proxy
|
|
30
|
+
|
|
31
|
+
# Discord Bot Token
|
|
32
|
+
TOKEN = config.token
|
|
33
|
+
|
|
34
|
+
# Discord Webhook URL
|
|
35
|
+
WEBHOOK_URL = config.webhook_url
|
|
36
|
+
|
|
37
|
+
# Discord Webhook ID (WEBHOOK_URL 中的那一串数字)
|
|
38
|
+
WEBHOOK_ID = config.webhook_id
|
|
39
|
+
|
|
40
|
+
# Discord 服务器 ID
|
|
41
|
+
GUILD_ID = config.guild_id
|
|
42
|
+
|
|
43
|
+
# Discord 频道 ID
|
|
44
|
+
CHANNEL_ID = config.channel_id
|
|
45
|
+
|
|
46
|
+
# QQ 群号
|
|
47
|
+
QQ_ID = config.qq_id
|
|
48
|
+
|
|
49
|
+
# 转发失败时添加的 reaction 名称 (支持自定义表情符号)
|
|
50
|
+
QQ_FORWARD_FAILED = config.qq_forward_failed
|
|
51
|
+
|
|
52
|
+
# 日志文件路径
|
|
53
|
+
LOG_FILE = config.log_file
|
|
54
|
+
|
|
55
|
+
# QQ - Discord 用户 id 绑定文件路径
|
|
56
|
+
qq_bind_file = config.qq_bind_file
|
|
57
|
+
qq_bind_file_2 = config.qq_bind_file_2
|
|
58
|
+
|
|
59
|
+
# 转发回复消息时显示的原消息内容的最大长度
|
|
60
|
+
MAX_REPLY_PREVIEW_LENGTH = config.max_reply_preview_length
|
|
61
|
+
|
|
62
|
+
# 转发消息前缀
|
|
63
|
+
PREFIX = config.prefix
|
|
64
|
+
|
|
65
|
+
# Bot 名称
|
|
66
|
+
BOT_NAME = config.bot_name
|
|
67
|
+
|
|
68
|
+
# QQ 机器人命令名
|
|
69
|
+
QQ_COMMAND = config.qq_command
|
|
70
|
+
|
|
71
|
+
# QQ 机器人命令前缀
|
|
72
|
+
QQ_COMMAND_PREFIX = config.qq_command_prefix
|
|
73
|
+
|
|
74
|
+
# Discord 机器人命令前缀
|
|
75
|
+
DISCORD_COMMAND_PREFIX = config.discord_command_prefix
|
|
76
|
+
|
|
77
|
+
# QQ 转发机器人以用户身份调用其它机器人时发送消息的格式
|
|
78
|
+
# 若其它机器人支持此功能,才可使用,否则请留空
|
|
79
|
+
# {Q} 自动替换为用户对应的 QQ 号
|
|
80
|
+
# {C} 自动替换为用户发送的内容
|
|
81
|
+
QQ_SUDO_FORMAT = config.qq_sudo_format
|
nonebot_plugin_discord_message_bridge-1.0.0/nonebot_plugin_discord_message_bridge.egg-info/PKG-INFO
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nonebot-plugin-discord-message-bridge
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Discord - QQ 消息转发插件
|
|
5
|
+
Author-email: xxtg666 <xxtg666@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: nonebot2
|
|
11
|
+
Requires-Dist: nonebot-adapter-onebot
|
|
12
|
+
Requires-Dist: discord-py
|
|
13
|
+
Requires-Dist: nonebot2[fastapi]
|
|
14
|
+
Requires-Dist: httpx
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
<div align="center">
|
|
19
|
+
|
|
20
|
+
<a href="./LICENSE">
|
|
21
|
+
<img src="https://img.shields.io/github/license/xxtg666/nonebot-plugin-discord-message-bridge.svg?style=for-the-badge" alt="license">
|
|
22
|
+
</a>
|
|
23
|
+
|
|
24
|
+
<img src="https://img.shields.io/badge/python-3.10+-blue.svg?style=for-the-badge" alt="python">
|
|
25
|
+
|
|
26
|
+
<a href="https://github.com/psf/black">
|
|
27
|
+
<img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge" alt="Code style: black">
|
|
28
|
+
</a>
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
## 📖 介绍
|
|
33
|
+
|
|
34
|
+
将 QQ 与 Discord 的消息互通,并支持转发**图片**、**回复**、**提及(@)**
|
|
35
|
+
|
|
36
|
+
## 💿 安装
|
|
37
|
+
|
|
38
|
+
### 1. 创建一个新的 NoneBot2 机器人
|
|
39
|
+
|
|
40
|
+
> 如果您需要将本插件安装到现有的机器人,可忽略此步骤
|
|
41
|
+
|
|
42
|
+
注意在 `pyproject.toml` 中配置一个 `plugin_dirs`,可以参考以下设置:
|
|
43
|
+
|
|
44
|
+
```toml
|
|
45
|
+
plugin_dirs = ["src/plugins"]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
> [!TIP]
|
|
49
|
+
> 在配置完成后您需要在机器人工作目录新建此文件夹,下文将使用 `插件目录` 代指此目录。
|
|
50
|
+
|
|
51
|
+
### 2. 安装插件
|
|
52
|
+
|
|
53
|
+
您可以选择以下两种安装方式
|
|
54
|
+
|
|
55
|
+
<details>
|
|
56
|
+
<summary>使用 Git 子模块安装</summary>
|
|
57
|
+
|
|
58
|
+
> 此方法需要您能够使用 git 并已经在机器人目录下初始化 git 仓库
|
|
59
|
+
|
|
60
|
+
请将以下指令的 `src/plugins/` 替换为您的插件目录
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git submodule add https://github.com/xxtg666/nonebot-plugin-discord-message-bridge src/plugins/nonebot_plugin_discord_message_bridge
|
|
64
|
+
git submodule update --init --recursive
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
</details>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary>使用文件</summary>
|
|
72
|
+
|
|
73
|
+
1. [下载本仓库](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/archive/refs/heads/main.zip)
|
|
74
|
+
2. 将 `nonebot-plugin-discord-message-bridge-main` 文件夹解压到插件目录,并重命名为 `nonebot_plugin_discord_message_bridge`
|
|
75
|
+
|
|
76
|
+
</details>
|
|
77
|
+
|
|
78
|
+
### 3. 安装依赖
|
|
79
|
+
|
|
80
|
+
经过步骤二后,您的插件应该被安装到了 `插件目录/nonebot_plugin_discord_message_bridge` 中,本步骤您需要进入 `插件目录/nonebot_plugin_discord_message_bridge` 安装本插件所需依赖
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pip install -r requirements.txt
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
如果您使用了其他包管理器,请参考您所使用的包管理器的使用方法安装所需依赖
|
|
87
|
+
|
|
88
|
+
## ⚙️ 配置
|
|
89
|
+
|
|
90
|
+
请修改在机器人目录中创建一个 `.env` 文件(或编辑对应 `.env` 文件,可能为 `.env.dev` 或 `.env.prod`),并参考 [config.py](https://github.com/xxtg666/nonebot-plugin-discord-message-bridge/blob/main/config.py) 的内容进行修改
|
|
91
|
+
|
|
92
|
+
- 需要 [🔗创建一个 Discord Bot](https://discord.com/developers/applications) 并邀请进入服务器中,用于接收消息
|
|
93
|
+
- 需要在 Discord 的 「服务器设置 → 整合」 内为需要转发的频道创建一个 Webhook ,并填入配置文件中,用于发送 QQ 内的消息
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## 🎉 使用
|
|
97
|
+
|
|
98
|
+
- 在 QQ 群内收到一条消息时会启动 Discord 接收端,转发即可正常使用
|
|
99
|
+
- 用户在 Discord 内发送绑定命令 (默认为 `~`) 后可转发提及(@)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
config.py
|
|
4
|
+
pyproject.toml
|
|
5
|
+
nonebot_plugin_discord_message_bridge.egg-info/PKG-INFO
|
|
6
|
+
nonebot_plugin_discord_message_bridge.egg-info/SOURCES.txt
|
|
7
|
+
nonebot_plugin_discord_message_bridge.egg-info/dependency_links.txt
|
|
8
|
+
nonebot_plugin_discord_message_bridge.egg-info/requires.txt
|
|
9
|
+
nonebot_plugin_discord_message_bridge.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
config
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "nonebot-plugin-discord-message-bridge"
|
|
3
|
+
|
|
4
|
+
version = "1.0.0"
|
|
5
|
+
|
|
6
|
+
description = "Discord - QQ 消息转发插件"
|
|
7
|
+
authors = [
|
|
8
|
+
{ name = "xxtg666", email = "xxtg666@gmail.com" }
|
|
9
|
+
]
|
|
10
|
+
dependencies = [
|
|
11
|
+
"nonebot2",
|
|
12
|
+
"nonebot-adapter-onebot",
|
|
13
|
+
"discord-py",
|
|
14
|
+
"nonebot2[fastapi]",
|
|
15
|
+
"httpx"
|
|
16
|
+
]
|
|
17
|
+
requires-python = ">=3.10"
|
|
18
|
+
readme = "README.md"
|
|
19
|
+
license = { text = "MIT" }
|