Moving the conversation from another thread to help other people set up the plugin.
Quote:
Originally Posted by MaNaReaver
So, I put the executable and .toml file in a folder, and added gRIP module. I also compiled matteramxx, but the relay isn't happening. Also, what do I need to have in amx_matter_bridge_url? Should it be my server url or something else?
This is my toml file:
Code:
[api.myserver1]
BindAddress="35.200.152.63:27010"
Token="token"
Buffer=1000
RemoteNickFormat="{NICK}"
[api.myserver2]
BindAddress="35.200.152.63:27020"
Token="token"
Buffer=1000
RemoteNickFormat="{NICK}"
[discord]
[discord.mydiscord]
Token="token"
Server="server-id"
#Server="Crimson Demons Multimod"
WebhookURL="webhookurl"
[[gateway]]
name="cstrike"
enable=true
[[gateway.inout]]
account="discord.mydiscord"
channel="discussion"
[[gateway.inout]]
account="api.myserver1"
channel="api"
[[gateway.inout]]
account="api.myserver2"
channel="api"
Best regards.
|
amx_matter_bridge_url is where you are hosting the matterbridge instance.
For example: "http://(ipofyourserver):27010/"
If you're hosting MatterBridge on the same machine as your gameservers you can use localhost ("http://localhost:27010/"). If not, you must use the external IP of the server that's hosting MatterBridge.
Quote:
[api.myserver1]
BindAddress="35.200.152.63:27010"
Token="token"
Buffer=1000
RemoteNickFormat="{NICK}"
[api.myserver2]
BindAddress="35.200.152.63:27020"
Token="token"
Buffer=1000
RemoteNickFormat="{NICK}"
|
Change BindAddress to 0.0.0.0, it must be a local, this makes it so the API will be listening to the local IP.
You can use any port providing is it not being used.
For reference I will put my own configuration of one of my servers:
matterbridge.toml
PHP Code:
[discord.spanish]
# You can get your token by following the instructions on
# https://github.com/42wim/matterbridge/wiki/Discord-bot-setup
# If you want roles/groups mentions to be shown with names instead of ID,
# you'll need to give your bot the "Manage Roles" permission.
Token="(REDACTED)"
Server="450507265657798656" # picked from guilds the bot is connected to
RemoteNickFormat="{NICK} @ {LABEL}"
ShowEmbeds=false
UseUserName=true
UseDiscriminator=true
EditDisable=true
EditSuffix=" (edited)"
Label="discord"
[api.hldm_arcadeflorida]
BindAddress="0.0.0.0:4243"
Token="(REDACTED)"
Buffer=1000
RemoteNickFormat="{NICK}"
Label="valve"
[[gateway]]
name="hldm_arcadeflorida"
enable=true
[[gateway.inout]]
account="discord.spanish"
channel="ID:698718732897484841"
[gateway.inout.options]
WebhookURL="https://discordapp.com/api/webhooks/(REDACTED)"
[[gateway.inout]]
account="api.hldm_arcadeflorida"
channel="api"
cvars:
Code:
amx_matter_bridge_url "http://(redacted):4243"
amx_matter_bridge_gateway "hldm_arcadeflorida"
amx_matter_bridge_token "(redacted)"
amx_matter_bridge_outgoing_system_username "* Server"
amx_matter_bridge_outgoing_kills "0"
amx_matter_bridge_outgoing_join "1"
amx_matter_bridge_outgoing_quit "1"
amx_matter_bridge_incoming_chat_protocol 1
__________________