Quote:
Originally Posted by Gabe Iggy
Moving the conversation from another thread to help other people set up the plugin.
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.
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
|
I tried out
http://localhost:80,
http://localhost:27010,
http://localhost:27020, and my IP addresses as bridge, but I was receiving the error: "[MatterAMXX] Invalid message arrived, ignoring."
I set the token for both servers and gateway was set to cstrike. Maybe my bridge is the fault here, should it be an accessible link for the bridge or it's fine as long as it's accessing the bridge from the server?
__________________