forked from Galactic/modmail
fixed a couple brainfarts
This commit is contained in:
parent
6785b2db7b
commit
b1f8268cfe
@ -3,5 +3,5 @@ WORKDIR /modmail
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
VOLUME [ "/modmail/modmail_cache" ]
|
VOLUME [ "/modmail/modmail_cache" ]
|
||||||
ENTRYPOINT [ "/bin/ash" ]
|
#ENTRYPOINT [ "/bin/ash" ]
|
||||||
# CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
4
index.js
4
index.js
@ -1,11 +1,11 @@
|
|||||||
if (!require('fs').existsSync('./config')) {
|
if (!require('fs').existsSync('./config.js')) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(`Missing config file.`);
|
console.error(`Missing config file.`);
|
||||||
// eslint-disable-next-line no-process-exit
|
// eslint-disable-next-line no-process-exit
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Options = require('./config');
|
const Options = require('./config.js');
|
||||||
const { Client } = require('./structure');
|
const { Client } = require('./structure');
|
||||||
|
|
||||||
const client = new Client(Options);
|
const client = new Client(Options);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"nodemon": "^2.0.7"
|
"nodemon": "^2.0.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^4.0.0",
|
||||||
"diagnostics": "^2.0.2",
|
"diagnostics": "^2.0.2",
|
||||||
"discord.js": "^12.5.3",
|
"discord.js": "^12.5.3",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user