First Setup
This commit is contained in:
commit
900a4f65da
11 files changed
+2244
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user