Refactor Dockerfile to remove command registration step and update index.ts to load commands from deploy-commands
This commit is contained in:
@@ -5,7 +5,6 @@ WORKDIR /app
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN npm clean-install && \
|
RUN npm clean-install && \
|
||||||
npm run build && \
|
npm run build
|
||||||
npm run register
|
|
||||||
|
|
||||||
CMD [ "npm", "run", "start" ]
|
CMD [ "npm", "run", "start" ]
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ import { CommandDefinition } from "./type";
|
|||||||
|
|
||||||
configDotenv();
|
configDotenv();
|
||||||
|
|
||||||
|
// Load commands.
|
||||||
|
import './deploy-commands'
|
||||||
|
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
intents: [
|
intents: [
|
||||||
GatewayIntentBits.Guilds,
|
GatewayIntentBits.Guilds,
|
||||||
|
|||||||
Reference in New Issue
Block a user