Skip to content

Matterbridge

Playbook

Create Bot and Add To Discord Guild

See Discord bot setup · 42wim/matterbridge Wiki

Go to https://discord.com/developers/applications and create a bot by clicking New Application

Set Intents under Bot settings

  • Server Members Intent, Active
  • Message Content Intent, Active

Add Bot to Discord Guild


# Replace 1330751502545059903 with your APPLICATION_ID 1330751502545059903

https://discord.com/api/oauth2/authorize?client_id=1330751502545059903&scope=bot&permissions=536870912

Install


git clone https://github.com/42wim/matterbridge.git
cd matterbridge
docker build -t matterbridge .


version: '3.7'
services:
  matterbridge:
    image: 42wim/matterbridge:stable
    restart: unless-stopped
    volumes:
    - ./matterbridge.toml:/etc/matterbridge/matterbridge.toml:ro
#    command: -debug

Create a Discord Bot and add it to a Discord Guild

Instructions to add Bridges to Matter Bridge

For context I have the bridge running on a VPS I have running on Vultr

  • Add Telegram Bot to Telegram Channel
    • Get Channel ID from bot using /chatId
  • Add Discord Bot to Discord Guild
    • Get the name of the discord channel
  • Modify matterbridge.toml on Server
    • Add Discord Guild to list of providers
    • Add Bridge List to TOML file using Telegram chatID and Discord Channel Name
  • Restart matterbridge process
    • tmux a -t matterbridge
    • ./go/bin/matterbridge -debug

Instructions

  • Install Go

go install -tags whatsappmulti github.com/42wim/matterbridge@master
go install -tags nomsteams,whatsappmulti github.com/42wim/matterbridge@master

Source