mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-27 01:13:04 +02:00
Update agent.js
This commit is contained in:
parent
2d956ccddb
commit
043011e20a
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ import { addViewer } from './viewer.js';
|
||||||
import settings from '../../settings.js';
|
import settings from '../../settings.js';
|
||||||
import { serverProxy } from './agent_proxy.js';
|
import { serverProxy } from './agent_proxy.js';
|
||||||
import { Task } from './tasks.js';
|
import { Task } from './tasks.js';
|
||||||
|
import { say } from './speak.js';
|
||||||
|
|
||||||
export class Agent {
|
export class Agent {
|
||||||
async start(profile_fp, load_mem=false, init_message=null, count_id=0, task_path=null, task_id=null) {
|
async start(profile_fp, load_mem=false, init_message=null, count_id=0, task_path=null, task_id=null) {
|
||||||
|
@ -357,6 +358,7 @@ export class Agent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
say(message);
|
||||||
this.bot.chat(message);
|
this.bot.chat(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue