Refactor Dockerfile to remove command registration step and update index.ts to load commands from deploy-commands

This commit is contained in:
2026-04-02 14:28:31 +02:00
parent 03ba37ec1a
commit db3443e407
2 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ WORKDIR /app
COPY . /app
RUN npm clean-install && \
npm run build && \
npm run register
npm run build
CMD [ "npm", "run", "start" ]

View File

@@ -6,6 +6,9 @@ import { CommandDefinition } from "./type";
configDotenv();
// Load commands.
import './deploy-commands'
const client = new Client({
intents: [
GatewayIntentBits.Guilds,