Update brain.mjs

This commit is contained in:
Arma-Damna-Dillo 2025-02-08 04:10:10 +00:00
parent 699bb7df77
commit 27ff7547ef

View file

@ -37,7 +37,6 @@ class ConsciousnessApp {
// Helper function for asking questions // Helper function for asking questions
async asker() { async asker() {
return new Promise((resolve) => {
this.rl.question('<Query>: ', (query) => { this.rl.question('<Query>: ', (query) => {
if (query == "exit" || query == "quit") { if (query == "exit" || query == "quit") {
console.log("Goodbye!") console.log("Goodbye!")
@ -46,7 +45,6 @@ class ConsciousnessApp {
this.userTalks(query).then(resolve); // Call userTalks and resolve when done this.userTalks(query).then(resolve); // Call userTalks and resolve when done
this.asker() this.asker()
}); });
});
} }
async intentUpdater() { async intentUpdater() {