Cleaned up mineflayer support
This commit is contained in:
13
index.js
13
index.js
@@ -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'));
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user