From fcef934e60f3799ff5e28626047dfddc440f3977 Mon Sep 17 00:00:00 2001 From: thedrewen Date: Wed, 26 Nov 2025 09:22:36 +0100 Subject: [PATCH] fix(status): update host addresses and remove unused attachment logic in status command --- src/commands/utility/statut.command.ts | 6 ++---- src/services/status.service.ts | 11 ++--------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/commands/utility/statut.command.ts b/src/commands/utility/statut.command.ts index ecefca5..796adea 100644 --- a/src/commands/utility/statut.command.ts +++ b/src/commands/utility/statut.command.ts @@ -1,4 +1,4 @@ -import { ApplicationIntegrationType, AttachmentBuilder, ChatInputCommandInteraction, InteractionContextType, MessageFlags, SlashCommandBuilder } from "discord.js"; +import { ApplicationIntegrationType, ChatInputCommandInteraction, InteractionContextType, MessageFlags, SlashCommandBuilder } from "discord.js"; import statusService from "../../services/status.service"; import { CommandDefinition} from "../../type"; @@ -17,9 +17,7 @@ const cmd : CommandDefinition = { ), async execute(interaction : ChatInputCommandInteraction) { await interaction.deferReply(); - let status = await statusService.getStatusImageBar('154.16.254.10'); - const attachment = new AttachmentBuilder(status, {name: 'status.png'}); - await interaction.editReply({components: [await statusService.getUpdatedContainer()], flags: MessageFlags.IsComponentsV2, files: [attachment]}); + await interaction.editReply({components: [await statusService.getUpdatedContainer()], flags: MessageFlags.IsComponentsV2}); } } diff --git a/src/services/status.service.ts b/src/services/status.service.ts index b97518f..85e3d2b 100644 --- a/src/services/status.service.ts +++ b/src/services/status.service.ts @@ -40,7 +40,7 @@ export class StatusService { notify: true }, { - host: '5.178.99.6', + host: '5.178.99.240', name: 'RYZEN 02', alive: false, ping_type: 'ping', @@ -56,7 +56,7 @@ export class StatusService { notify: true }, { - host: '154.16.254.10', + host: '144.76.35.26', name: 'RYZEN7 04', alive: false, ping_type: 'ping', @@ -405,13 +405,6 @@ export class StatusService { }); container.addSeparatorComponents((s) => s); - if(!live) { - container.addTextDisplayComponents((t) => t.setContent('This is a status bar to test : (Ryzen7)')) - container.addMediaGalleryComponents((m) => m - .addItems((i) => i.setURL('attachment://status.png')) - ); - } - container.addTextDisplayComponents((text) => text.setContent(`:globe_with_meridians: Website Status : https://statut.protojx.com/\n${live ? 'Last update : ' : ''} - Receive automatic notifications when there is an outage with /follow !`)); return container;