diff --git a/index.js b/index.js index 5cb6e3e..d3013cb 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,14 @@ client.setMaxListeners(20) const isDev = true //!!!!!!!!!!! -if (isDev){var config = require('./devConfig.json')}else{var config = require('./config.json')} +if (isDev){ + try { + var config = require('./devConfig.json') + }catch{ + console.log("devConfig.json not found! Trying the normal config...") + var config = require("./config.json") + } +}else{var config = require('./config.json')} exports.config = config client.on('ready',async () => {