Skip to content

Commit

Permalink
Add a MatterBukkit API listener to test around with
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed May 25, 2024
1 parent 0a2d8d4 commit 074baf2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
5 changes: 4 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ initialise:
rsync -r ${REMOTE}:/secrets/service-${SERVICE_NAME}/ ./.secrets/

# Start the Docker container on the remote. This is needed to refresh secret .env files after a sync-secrets -- for this reason, it's recommended to use the restart target instead, which covers it.
#
# We open port 4242 for the Matterbridge API listener for the MatterBukkit
# service.
start:
ssh ${REMOTE} 'docker run -d --name service-${SERVICE_NAME} \
--network traefik-net \
--label "traefik.enable=true" \
--env-file /secrets/service-${SERVICE_NAME}/.env \
-e "FILE_UPLOAD=https://service-simple-storage:3456/${SERVICE_NAME}" \
-p 4242:4242 \
--label "com.centurylinklabs.watchtower.enable=true" \
ghcr.io/compsoc-edinburgh/service-${SERVICE_NAME}'

Expand Down
28 changes: 28 additions & 0 deletions matterbridge/matterbridge.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Definitions for the various gateway configurations. See lower down for
# account configurations.

[[gateway]]
name="SIGINT Bridge Gateway"
enable=true
Expand Down Expand Up @@ -70,6 +73,23 @@ channel="ID:1156637304211906713" # typesig
account="discord.typesig"
channel="ID:1157074584361771028" # announcements

[[gateway]]
# This 'name' field is used by the connecting Minecraft plugin to identify the gateway.
name="Minecraft_Vanilla_Server_Bridge_Gateway"
enable=true

[[gateway.inout]]
# As required by https://github.com/Programie/MatterBukkit
account="api.matterbukkit"
channel="api"

[[gateway.inout]]
account="discord.compsoc"
channel="ID:316038111811600387" # bottest


# Definitions for the various account configurations

[discord]
[discord.compsoc]

Expand Down Expand Up @@ -135,3 +155,11 @@ AllowMention=[]
AutoWebhooks=true
# Show a preview of other bot's embeds by copying the title and description
ShowEmbeds=true

# Used for the Matterbukkit Minecraft Spigot plugin to connect from.
# Make sure the port is exposed on the Docker container.
[api.matterbukkit]

BindAddress="0.0.0.0:4242"
Buffer=1000
RemoteNickFormat="[{PROTOCOL}] {NICK}"

0 comments on commit 074baf2

Please sign in to comment.