Mattermost and discord chatbridge

Hey all, welcome back to another chat bridge post. In the last guide I showed you how to create a slack -> Discord bridge which you can read Here. In this post I will be teaching you how to create a matter most -> Discord bridge so let’s get into it!

Please make sure you follow my first post about the bridge Here but do not paste the config files as we will be using different types of configs.

The first type of config is the following

[mattermost.mymattermost]
#The mattermost hostname. (do not prefix it with http or https)
Server="yourmattermostserver.domain:80"
 
#the team name as can be seen in the mattermost webinterface URL
#in lowercase, without spaces
Team="yourteam"
 
#login/pass of your bot.
#Use a dedicated user for this and not your own!
Login="yourlogin"
Password="yourpass"
 
#Enable this (set to true) to make a http connection
#(instead of https) to your mattermost.
NoTLS=false
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
PrefixMessagesWithNick=true

Make sure you replace all the fields so it fits your details, such as the username, password, server and team name.

Now you will need to create the gateway config. This goes underneath the main config and looks something like this

[[gateway.inout]]
account="discord.mydiscord"
channel="channelname"
 
[[gateway.inout]]
account="mattermost.mymattermost"
channel="channelname"

When you replace the channel names for both the gateways they are different. For example for discord the channel name is the name without #. But for matter most the channel name is the name in the site URL not the display name.

Now that’s all the config files setup, as long as you are following the main guide it will be all done, so now try to run the bridge and voila its all done

This post was sponsored by the following

QNAP Unofficial Forum - Connect and share with other NAS & Docker enthusiasts.