Cleaned up mineflayer support

This commit is contained in:
2023-03-17 10:45:59 +01:00
parent 634f527f15
commit b3830dd22f

View File

@@ -128,9 +128,9 @@ client.on(Events.ClientReady, () => {
client.login(token); client.login(token);
// connect(mongoURI, {}).then(() => { connect(mongoURI, {}).then(() => {
// console.log('Connected to MongoDB'); console.log('Connected to MongoDB');
// }) })
// const bot = mineflayer.createBot({ // const bot = mineflayer.createBot({
// host: 'mc.hypixel.net', // host: 'mc.hypixel.net',
@@ -141,6 +141,13 @@ client.login(token);
// auth: 'microsoft' // 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 mfPath = path.join(__dirname, 'utils', 'mineflayer');
// const mfFiles = fs.readdirSync(mfPath).filter(file => file.endsWith('.js')); // const mfFiles = fs.readdirSync(mfPath).filter(file => file.endsWith('.js'));
// //