matterbridge icon indicating copy to clipboard operation
matterbridge copied to clipboard

Changes required after Gitter migration to Matrix

Open epassaro opened this issue 2 years ago • 3 comments

Hi! I spent some time trying to make Matterbridge work again with Gitter after the recent migration to Matrix.

This is what I did (and worked):

[matrix]
[matrix.<YOUR BOT NAME>]
Server="https://gitter.ems.host"
MxID="@<PUT YOUR BOT ID HERE>:gitter.im"
Token="<PUT YOUR TOKEN HERE>"
RemoteNickFormat="[{PROTOCOL}] <b>{NICK}</b>: "
NoHomeServerSuffix=true

and then the gateway:

[[gateway]]
name="slack-gitter-bridge"
enable=true

    [[gateway.inout]]
    account="slack.matterbridge-bot"
    channel="gitter-bridge"

    [[gateway.inout]]
    account="matrix.my-bot"
    channel="#<YOUR ROOM HERE>:gitter.im"

Some observations:

  • The Matrix token can be found at the bottom of the last section in the settings. But this token changes as soon as you close the session and log in again. Is it possible to get a token that does not expire so soon? A token from the bot's GitHub account maybe? Please let me know
  • You need to accept the terms and conditions before starting messaging, so running matterbridge shouldn't work the first time, search for the link in the output in the command line

epassaro avatar Feb 15 '23 14:02 epassaro

The Matrix token can be found at the bottom of the last section in the settings. But this token changes as soon as you close the session and log in again. Is it possible to get a token that does not expire so soon? A token from the bot's GitHub account maybe? Please let me know

Open Element in your browsers incognito/private mode and quit it without logging out once you have the token.

Mikaela avatar Feb 15 '23 15:02 Mikaela

Sounds reasonable, thanks.

epassaro avatar Feb 15 '23 15:02 epassaro

I have a configuration with Discord and Gitter. When I send a message to Discord, it relays correctly the message to Gitter. But if I send a Gitter message, it doesn't relay it to Discord AFAIK. Can someone help me? I can't find any issue that relates to my problem.

ItsQuadrus avatar Jun 06 '23 21:06 ItsQuadrus