First Setup

This commit is contained in:
CorwinDev committed 2022-07-30 16:09:49 +02:00
commit 900a4f65da
11 files changed
+2244

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
// Load Bot and website
const bot = require('./bot');
const website = require('./website');
// Import config and export
const config = require('./config');
// Connect to mongoDB
try {
mongoose.connect(config.mongoDB.url);
} catch (err) {
console.log('Error connecting to mongoDB');
process.exit(1);
}
//export config
module.exports.config = config;
module.exports.mongoose = mongoose;