mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-04 23:55:20 +02:00
log on login
This commit is contained in:
parent
0a21561dcb
commit
d515a80c7f
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ export class Agent {
|
|||
save_data = this.history.load();
|
||||
}
|
||||
|
||||
this.bot.on('login', () => {
|
||||
console.log('Logged in!');
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
this.bot.once('spawn', async () => {
|
||||
addViewer(this.bot, count_id);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue