Merge pull request #288 from kolbytn/login-log

Login log
This commit is contained in:
Max Robinson 2024-11-05 16:51:07 -06:00 committed by GitHub
commit 25f69a9c1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ export class Agent {
await this.prompter.initExamples();
console.log('Logging in...');
console.log('Logging into minecraft...');
this.bot = initBot(this.name);
initModes(this);
@ -35,6 +35,10 @@ export class Agent {
save_data = this.history.load();
}
this.bot.on('login', () => {
console.log('Logged in!');
});
this.bot.once('spawn', async () => {
addViewer(this.bot, count_id);