bug fix
fixed not starting up because of a temporary config file
This commit is contained in:
@@ -9,7 +9,14 @@ client.setMaxListeners(20)
|
|||||||
const isDev = true
|
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
|
exports.config = config
|
||||||
|
|
||||||
client.on('ready',async () => {
|
client.on('ready',async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user