diff --git a/index.js b/index.js index eae3bcc..9bbade6 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ const { Client, GatewayIntentBits, Partials, ActivityType, Events, Collection } = require('discord.js'); -const { token, hypixelApiKey } = require('./config.json'); +const { token, mongoURI } = require('./config.json'); +const { connect } = require('mongoose'); const path = require('path'); const fs = require('fs'); @@ -106,4 +107,8 @@ client.on(Events.ClientReady, () => { client.user.setStatus('dnd'); }); -client.login(token); \ No newline at end of file +client.login(token); + +connect(mongoURI, {}).then(() => { + console.log('Connected to MongoDB'); +})