mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-29 03:15:27 +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();
|
save_data = this.history.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.bot.on('login', () => {
|
||||||
|
console.log('Logged in!');
|
||||||
|
process.exit(0);
|
||||||
|
});
|
||||||
|
|
||||||
this.bot.once('spawn', async () => {
|
this.bot.once('spawn', async () => {
|
||||||
addViewer(this.bot, count_id);
|
addViewer(this.bot, count_id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue