From 19a98b8b3eb2e11ec14a50318c8efa297d76a44c Mon Sep 17 00:00:00 2001 From: TheWander02 <48934424+thewander02@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:18:46 -0700 Subject: [PATCH] fix: motd --- apps/frontend/src/composables/pyroServers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/frontend/src/composables/pyroServers.ts b/apps/frontend/src/composables/pyroServers.ts index 9fe131bb6..a0b757f5c 100644 --- a/apps/frontend/src/composables/pyroServers.ts +++ b/apps/frontend/src/composables/pyroServers.ts @@ -655,6 +655,11 @@ const modules: any = { data.project = await fetchProject(data.upstream.project_id); } data.image = (await processImage(data.project?.icon_url)) ?? undefined; + const motd = await getMotd(); + if (motd === "A Minecraft Server") { + await setMotd(`§b${data.project?.title} §f♦ §aModrinth Servers`); + } + data.motd = motd; return data; }, updateName,