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
|
||||
|
||||
RUN npm clean-install && \
|
||||
npm run build && \
|
||||
npm run register
|
||||
npm run build
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
||||
@@ -6,6 +6,9 @@ import { CommandDefinition } from "./type";
|
||||
|
||||
configDotenv();
|
||||
|
||||
// Load commands.
|
||||
import './deploy-commands'
|
||||
|
||||
const client = new Client({
|
||||
intents: [
|
||||
GatewayIntentBits.Guilds,
|
||||
|
||||
Reference in New Issue
Block a user