Skip to content

Commit

Permalink
fix: motd
Browse files Browse the repository at this point in the history
  • Loading branch information
thewander02 committed Oct 16, 2024
1 parent e1b864f commit 19a98b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/frontend/src/composables/pyroServers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 19a98b8

Please sign in to comment.