diff --git a/brain.mjs b/brain.mjs index cffc2ba..fdc9efa 100644 --- a/brain.mjs +++ b/brain.mjs @@ -39,12 +39,17 @@ class ConsciousnessApp { await this.simulator.simulateConsciousness(); } } - + asking = false async asker() { while (true) { - await this.rl.question(': ', (query) => { - userTalks(query) - }); + if (asking == false) { + asking = true + await this.rl.question(': ', (query) => { + userTalks(query) + asking = false + }); + } + } }