update mojang status embed
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 56s
This commit is contained in:
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",
|
||||
|
Loading…
Reference in New Issue
Block a user