diff --git a/index.js b/index.js index 86a9920..dc4560a 100644 --- a/index.js +++ b/index.js @@ -128,9 +128,9 @@ client.on(Events.ClientReady, () => { client.login(token); -// connect(mongoURI, {}).then(() => { -// console.log('Connected to MongoDB'); -// }) +connect(mongoURI, {}).then(() => { + console.log('Connected to MongoDB'); +}) // const bot = mineflayer.createBot({ // host: 'mc.hypixel.net', @@ -141,6 +141,13 @@ client.login(token); // auth: 'microsoft' // }); // +// module.exports = bot; +// +// const { mineflayer: mineflayerViewer } = require('prismarine-viewer') +// bot.once('spawn', () => { +// mineflayerViewer(bot, { port: 10000, firstPerson: true }) +// }) +// // const mfPath = path.join(__dirname, 'utils', 'mineflayer'); // const mfFiles = fs.readdirSync(mfPath).filter(file => file.endsWith('.js')); // @@ -160,4 +167,4 @@ client.login(token); // console.log(`[WARNING] The mineflayer event at ${filePath} is missing a required "name", "execute" or "type" property.`); // } // -// } +// } \ No newline at end of file