Update brain.mjs

This commit is contained in:
Arma-Damna-Dillo 2025-02-08 04:02:22 +00:00
parent b56b145906
commit aba73dee8b

View file

@ -39,12 +39,17 @@ class ConsciousnessApp {
await this.simulator.simulateConsciousness();
}
}
asking = false
async asker() {
while (true) {
await this.rl.question('<Query>: ', (query) => {
userTalks(query)
});
if (asking == false) {
asking = true
await this.rl.question('<Query>: ', (query) => {
userTalks(query)
asking = false
});
}
}
}