diff --git a/server.js b/server.js index 5f88136..3aa1775 100644 --- a/server.js +++ b/server.js @@ -69,9 +69,10 @@ function connectToDB() bot.on('ready', () => { mongoose.Promise = global.Promise; + connectToDB(); console.log(`--------------------------\n ${bot.user.tag.split('#')[0]} \n Ready \n on `+bot.guilds.cache.size+" guilds \n serving "+bot.users.cache.size+" users \n--------------------------") bot.user.setPresence({ - activities: [{ name: `!help`, type: ActivityType.Listening }], + activities: [{ name: `!help`, type: ActivityType.Listening}], status: 'online', }); console.timeEnd('StartUp');