feat(status): enhance server status command with structured response and improved host categorization

This commit is contained in:
2025-10-31 08:40:11 +01:00
parent 17c00211da
commit d964ec7963
3 changed files with 90 additions and 38 deletions

9
src/type.d.ts vendored
View File

@@ -1,4 +1,11 @@
import { ButtonInteraction, ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
export type Host = { host: string, name: string, alive: boolean, type: 'ping' | 'website' };
export type InfraType = 'website' | 'ryzen' | 'xeon' | 'games';
export type Host = {
host: string,
name: string,
alive: boolean,
ping_type: 'ping' | 'website',
type: InfraType
};
export type CommandDefinition = { data: SlashCommandBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[]};