Coder Social home page Coder Social logo

nonebot-plugin-dcqg-relay's Introduction

QQ频道-Discord 互通

python

前言

本项目为自用插件,如果有需求或想法请提出,我尽量满足

因用到了QQ官方的频道机器人接口,功能少,限制多,而且很多功能我也没法测试,就没有支持。之后可能会出一个基于 OneBot 适配器的版本(懒)

目前QQ机器人不能发 url,如果从 Discord 转来的消息里带有 url 的活是发不出来的,目前我没有想到解决办法。有想法请提出

功能

可以在指定的QQ子频道和 Discord 频道之间同步消息,只支持普通的文字频道,不支持帖子频道

目前支持的消息:

  • 文字
  • 图片
  • 表情

尚未支持的消息:

  • 文件
  • 语音
  • 视频
  • ARK 消息
  • Embed 消息

安装

使用 nb-cli 安装

在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

nb plugin install nonebot-plugin-dcqg-relay

使用包管理器安装

建议使用 poetry

  • 通过 poetry 添加到 NoneBot2 项目的 pyproject.toml
poetry add nonebot-plugin-dcqg-relay
  • 也可以通过 pip 安装
pip install nonebot-plugin-dcqg-relay

配置

dcqg_relay_channel_links

  • 类型:json
  • 默认值:[]
  • 说明:链接对应的QQ子频道与 Discord 频道,目前只支持一对一链接

配置文件示例

dcqg_relay_channel_links='[
    {
        qq_guild_id: "123132",
        dc_guild_id: 456456,
        qq_channel_id: "78789",
        dc_channel_id: 123123
    },
    {
        qq_guild_id: str    # QQ频道 id
        dc_guild_id: int    # Discord 服务器 id
        qq_channel_id: str  # QQ子频道 id
        dc_channel_id: int  # Discord 频道 id
                            # 请不要将注释放在此处!!
    }
]'

dcqg_relay_unmatch_beginning

  • 类型:list[str]
  • 默认值:["/"]
  • 说明:指明不转发的消息开头

特别感谢

nonebot-plugin-dcqg-relay's People

Contributors

autuamn avatar pre-commit-ci[bot] avatar

Stargazers

XiaoDeng3386 avatar  avatar

Watchers

 avatar

nonebot-plugin-dcqg-relay's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.