kashalls/mineflayer-afk-bot

[Suggestion] Add configurable login commands

Closed this issue · 1 comments

Make it so the commands executed when an account connects to a server can be configured.

Buckets can now be used as implemented!
Either pass a function into the array or a string in the config js file.

// Everything in this file will be passed into the bot under this.client.options


module.exports = {
	host: 'play.eternal.gs',
    port: 25565,
    username: '',
    password: '',
    // Use mojang for yggdrasil login, microsoft for Microsoft login
    auth: 'mojang',
    bucket: [ 
        'Hello',
        'World!',
        ((client) => client.bot.chat('hello x2'))
    ]
};