This manual describes how to set up a local matterbridge chat relay.
The beerchat
mod communicates via http to the matterbridge api, for details see: https://github.com/42wim/matterbridge/wiki/Api
Get the matterbridge
binary from https://github.com/42wim/matterbridge or set it up with docker
A working example with docker-compose
is located in the /dev
folder of this repository
This matterbridge.toml
example connects the ingame main
channel to libera #beerchat
and a personal discord server:
[irc]
[irc.Libera]
Server="irc.libera.chat:6667"
Nick="BeerchatTestBot"
RemoteNickFormat="<{NICK}> "
ColorNicks=true
ShowJoinPart=true
[discord]
[discord.Discord]
Token="<omitted>"
Server="839951944515715084"
RemoteNickFormat="<{NICK}> "
ShowJoinPart=true
UseUserName=true
[api.minetest]
BindAddress="0.0.0.0:4242"
Token="mytoken"
Buffer=1000
RemoteNickFormat="{NICK}"
ShowJoinPart=true
[[gateway]]
name="main"
enable=true
[[gateway.inout]]
account="irc.Libera"
channel="#beerchat"
[[gateway.inout]]
account = "discord.Discord"
channel="matterbridge"
[[gateway.inout]]
account="api.minetest"
channel="api"
(tokens and passwords are omitted in this example)
For all settings see: https://github.com/42wim/matterbridge/wiki/Setting
Add the beerchat
mod to the http-settings and configure the url and token:
secure.http_mods = beerchat
# your local matterbridge setup
beerchat.matterbridge_url = http://127.0.0.1:4242
# The token you set up in the previous `matterbridge.toml` file (under `[api.myapi]`/Token)
beerchat.matterbridge_token = mytoken
Start the matterbridge server and minetest, there might be some errors in the minetest console if the matterbridge isn't available