Update brain.mjs
This commit is contained in:
parent
699bb7df77
commit
27ff7547ef
1 changed files with 0 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue