update mojang status embed
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s

This commit is contained in:
Lee 2024-04-17 17:36:29 +01:00
parent 5217ee4aab
commit 31accee7f7

@ -50,13 +50,12 @@ async function getData(): Promise<CachedEndpointStatus> {
export async function generateMetadata(): Promise<Metadata> {
const { endpoints } = await getData();
let description = "The current status of Mojang Services";
description += Object.entries(endpoints)
let description = Object.entries(endpoints)
.map(([url, status]) => {
return `**${url}**: ${formatStatus(status)}`;
return `${url}: ${formatStatus(status)}`;
})
.join("\n");
description += `\n\nUpdated: ${formatTime(new Date())}`;
description += `\n\nEmbed Cache: ${formatTime(new Date())}`;
return generateEmbed({
title: "Mojang Status",