simple and asynchronous matrix appservice framework
Find a file
git-bruh 4eb73aa87f
fmt
2021-01-24 13:46:50 +05:30
cogs update 2021-01-02 18:28:58 +05:30
screenshots screenshots 2021-01-21 13:28:40 +05:30
LICENSE Create LICENSE 2020-11-11 11:48:31 +00:00
main.py fmt 2021-01-24 13:46:50 +05:30
README.md readme 2021-01-24 12:05:45 +05:30
requirements.txt requirements 2021-01-24 11:59:15 +05:30
use_client_emojis.patch update 2021-01-24 13:44:41 +05:30

matrix-discord-bridge

A simple non-puppeting bridge between Matrix and Discord written in Python.

Installation

pip install -r requirements.txt

Usage

  • Run main.py to generate config.json

  • Edit config.json

{
    "homeserver": "https://matrix.org",
    "username": "@name:matrix.org",
    "password": "my-secret-password",
    "token": "my-secret-token",
    "discord_prefix": "my-command-prefix", # Prefix for Discord commands
    "bridge": {
        "channel_id": "room_id",  # Bridge multiple channels and rooms
        "channel_id2": "room_id2"
    }
}
  • Normal Discord bot functionality like commands can be added to the bot via cogs, example here.

  • Apply use_client_emojis.patch to make the Discord bot use emojis from all it's servers.

NOTE: Privileged Intents must be enabled for your Discord bot.

Screenshots

Screenshot

Screenshot

What Works

  • Sending messages
  • Discord webhooks (with avatars)
  • Attachments (Converted to URLs)
  • Typing status (Not very accurate)
  • Redacting messages
  • Editing messages
  • Replies
  • Bridging multiple channels/rooms
  • Discord emotes bridged as inline images (Works on Element Web, Fluffychat)