mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 09:48:56 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user