fixed a couple brainfarts

This commit is contained in:
Erik 2022-01-05 16:20:49 +02:00
parent 6785b2db7b
commit b1f8268cfe
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
3 changed files with 5 additions and 5 deletions

View File

@ -3,5 +3,5 @@ WORKDIR /modmail
COPY . .
RUN yarn install --production
VOLUME [ "/modmail/modmail_cache" ]
ENTRYPOINT [ "/bin/ash" ]
# CMD ["node", "index.js"]
#ENTRYPOINT [ "/bin/ash" ]
CMD ["node", "index.js"]

View File

@ -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);

View File

@ -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",