在QQ群与 Discord 之间同步消息的 nonebot2 插件
Project description
QQ群-Discord 互通
前言
OneBot 实现众多,表现各有不同,我的测试环境为 Lagrange.Onebot,遇到 bug 请提 issues,务必附上日志
本人 python 水平有限,遇到你认为可以改进的方法和函数,或有任何不妥之处,或需要注释支持,也请提出
功能
可以在指定的QQ群和 Discord 频道之间同步消息,只支持普通的文字频道,不支持帖子频道
目前支持的消息:
- 文字
- 图片
- 表情
- 回复消息
- 撤回消息
尚未支持的消息:
- 文件
- 语音
- 视频
- ARK 消息
- Embed 消息
安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-dcqq-relay
使用包管理器安装
建议使用 poetry
- 通过 poetry 添加到 NoneBot2 项目的 pyproject.toml
poetry add nonebot-plugin-dcqq-relay
- 也可以通过 pip 安装
pip install nonebot-plugin-dcqq-relay
配置
dcqq_relay_channel_links
- 类型:
json
- 默认值:
[]
- 说明:链接对应的QQ群与 Discord 频道,目前只支持一对一链接
配置文件示例
dcqq_relay_channel_links='[
{
qq_group_id: 123132,
dc_guild_id: 456456,
dc_channel_id: 789789
},
{
qq_group_id: int # QQ群号
dc_guild_id: int # Discord 服务器 id
dc_channel_id: int # Discord 频道 id
# 不要把注释放在此处!!
}
]'
dcqq_relay_unmatch_beginning
- 类型:
list[str]
- 默认值:
["/"]
- 说明:指明不转发的消息开头
特别感谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_dcqq_relay-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488a7e59659c86ced2348a46083e2af3bc97bdf3ee714471572ab3ec44e66bf5 |
|
MD5 | 9fbfbf9ceb475fa016d99308d2fe1350 |
|
BLAKE2b-256 | 15e0f291dda40288681ef102391d95ded98aec7cb50fcc1f2ea4103eb408abd0 |
Close
Hashes for nonebot_plugin_dcqq_relay-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b2b69b5dbe25ca163f87e5d48495913a12c7d3f97304910ac3caee48e5fd4a |
|
MD5 | 2e5c5c0c8bba54197a69e87e54b0d9f5 |
|
BLAKE2b-256 | 9b58d39cdbb8d299a87fa4f600cd97afc287fb3e68d977d450b5f7642ec143ae |