feat(commands): add uptime command with service selection and autocomplete

fix(Dockerfile): ensure entrypoint runs register command
fix(status.service): update getStatusImageBar to use serviceId
refactor(follow.command): simplify service lookup logic
refactor(deploy-commands): remove unnecessary DataSource initialization
This commit is contained in:
2025-12-15 09:40:24 +01:00
parent 1bffb9a971
commit ccc439d30a
7 changed files with 60 additions and 17 deletions

View File

@@ -2,8 +2,6 @@ import path from "path";
import fs from "fs";
import { configDotenv } from "dotenv";
import { REST, Routes } from "discord.js";
import "reflect-metadata";
import { AppDataSource } from "./data-source";
configDotenv();
@@ -59,8 +57,6 @@ const rest = new REST().setToken(process.env.TOKEN);
(async () => {
try {
// Initialize DataSource first
await AppDataSource.initialize();
console.log("Data Source initialized for command deployment!");
console.log(`Started refreshing ${commands.length} application (/) commands.`);
@@ -71,9 +67,6 @@ const rest = new REST().setToken(process.env.TOKEN);
) as any[];
console.log(`Successfully reloaded ${data.length} application (/) commands.`);
// Close the connection
await AppDataSource.destroy();
process.exit(0);
} catch (error) {
console.error('[ERROR] Failed to deploy commands:', error);