mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
Update agent_proxy.js
This commit is contained in:
parent
3eeb88e60e
commit
1171bad1e4
1 changed files with 8 additions and 0 deletions
|
@ -42,6 +42,14 @@ class AgentServerProxy {
|
|||
console.log(`Restarting agent: ${agentName}`);
|
||||
this.agent.cleanKill();
|
||||
});
|
||||
|
||||
this.socket.on('send-message', (agentName, message) => {
|
||||
try {
|
||||
this.agent.respondFunc("NO USERNAME", message);
|
||||
} catch (error) {
|
||||
console.error('Error: ', JSON.stringify(error, Object.getOwnPropertyNames(error)));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
login() {
|
||||
|
|
Loading…
Add table
Reference in a new issue