Skip to content

Commit

Permalink
Quieter errors.
Browse files Browse the repository at this point in the history
Better status page info
  • Loading branch information
Pickysaurus committed Feb 3, 2025
1 parent b6caec5 commit d1893be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/feeds/AutoModManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ async function analyseURLS(text: string): Promise<string[]> {

}
catch(err) {
if ((err as Error).message !== 'socket hang up') continue;
logMessage("Error expanding URL", { err, url }, true);
}
}
Expand Down
9 changes: 7 additions & 2 deletions src/interactions/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ async function action(client: ClientExt, baseInteraction: CommandInteraction): P
try {
const statusPage: IStatusPageFullResponse = await botuser.NexusMods.API.Other.WebsiteStatus(true) as IStatusPageFullResponse;
const embed = new EmbedBuilder()
.setTitle('Nexus Mods Status - '+statusPage.status.indicator)
.setDescription(statusPage.status.description)
.setTitle('Nexus Mods Status - '+statusPage.status.description)
.setDescription(`
**Components**\n
${statusPage.components.map(c => `${c.name}\n${c.description}`).join('\n')}
**Incidents**\n
${statusPage.incidents.map(c => `${c.name}\n${c.incident_updates[0].body}`).join('\n')}
`)
.addFields(
statusPage.components.map(c => ({
name: c.name ?? `_No Name ${c.id}_`,
Expand Down

0 comments on commit d1893be

Please sign in to comment.