You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
username:'Bot', // username or email, switch if you want to change accounts
88
+
username:'Bot', // username to join as if auth is `offline`, else a unique identifier for this account. Switch if you want to change accounts
89
89
auth:'microsoft'// for offline mode servers, you can set this to 'offline'
90
-
// port: 25565, // only set if you need a port that isn't 25565
91
-
// version: false, // only set if you need a specific version or snapshot (ie: "1.8.9" or "1.16.5"), otherwise it's set automatically
92
-
// password: '12345678' // set if you want to use password-based auth (may be unreliable). If specified, the `username` must be an email
90
+
// port: 25565, // set if you need a port that isn't 25565
91
+
// version: false, // only set if you need a specific version or snapshot (ie: "1.8.9" or "1.16.5"), otherwise it's set automatically
92
+
// password: '12345678' // set if you want to use password-based auth (may be unreliable). If specified, the `username` must be an email
93
93
})
94
94
95
95
bot.on('chat', (username, message) => {
@@ -103,9 +103,10 @@ bot.on('error', console.log)
103
103
```
104
104
105
105
If `auth` is set to `microsoft`, you will be prompted to login to microsoft.com with a code in your browser. After signing in on your browser,
106
-
the bot will automatically obtain and cache authentication tokens in the local file system so you don't have to sign-in again.
107
-
To switch the account, update the supplied `username`. By default, cached tokens will be stored in your user's .minecraft folder.
108
-
For more information on these options and others, see node-minecraft-protocol's [API doc](https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/docs/API.md#mccreateclientoptions).
106
+
the bot will automatically obtain and cache authentication tokens (under your specified username) so you don't have to sign-in again.
107
+
108
+
To switch the account, update the supplied `username`. By default, cached tokens will be stored in your user's .minecraft folder, or if `profilesFolder` is specified, they'll instead be stored there.
109
+
For more information on bot options see node-minecraft-protocol's [API doc](https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/docs/API.md#mccreateclientoptions).
0 commit comments