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> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
const { endpoints } = await getData();
|
const { endpoints } = await getData();
|
||||||
|
|
||||||
let description = "The current status of Mojang Services";
|
let description = Object.entries(endpoints)
|
||||||
description += Object.entries(endpoints)
|
|
||||||
.map(([url, status]) => {
|
.map(([url, status]) => {
|
||||||
return `**${url}**: ${formatStatus(status)}`;
|
return `${url}: ${formatStatus(status)}`;
|
||||||
})
|
})
|
||||||
.join("\n");
|
.join("\n");
|
||||||
description += `\n\nUpdated: ${formatTime(new Date())}`;
|
description += `\n\nEmbed Cache: ${formatTime(new Date())}`;
|
||||||
|
|
||||||
return generateEmbed({
|
return generateEmbed({
|
||||||
title: "Mojang Status",
|
title: "Mojang Status",
|
||||||
|
Loading…
Reference in New Issue
Block a user