From b1f8268cfe8874a69071f455ac20ab964954783d Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 5 Jan 2022 16:20:49 +0200 Subject: [PATCH] fixed a couple brainfarts --- Dockerfile | 4 ++-- index.js | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4dbbbf5..7351b50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,5 @@ WORKDIR /modmail COPY . . RUN yarn install --production VOLUME [ "/modmail/modmail_cache" ] -ENTRYPOINT [ "/bin/ash" ] -# CMD ["node", "index.js"] \ No newline at end of file +#ENTRYPOINT [ "/bin/ash" ] +CMD ["node", "index.js"] \ No newline at end of file diff --git a/index.js b/index.js index a7f3a50..744ea54 100644 --- a/index.js +++ b/index.js @@ -1,11 +1,11 @@ -if (!require('fs').existsSync('./config')) { +if (!require('fs').existsSync('./config.js')) { // eslint-disable-next-line no-console console.error(`Missing config file.`); // eslint-disable-next-line no-process-exit process.exit(0); } -const Options = require('./config'); +const Options = require('./config.js'); const { Client } = require('./structure'); const client = new Client(Options); diff --git a/package.json b/package.json index acc61c0..a226bc4 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "nodemon": "^2.0.7" }, "dependencies": { - "chalk": "^5.0.0", + "chalk": "^4.0.0", "diagnostics": "^2.0.2", "discord.js": "^12.5.3", "moment": "^2.29.1",