From 97bf35e3e3cf015f59e86d5d5fba37319b96ca10 Mon Sep 17 00:00:00 2001 From: Nero Ignis Date: Sun, 16 Aug 2020 13:31:57 +0200 Subject: [PATCH] Remove DB method call. --- .idea/workspace.xml | 31 ++++++++++++++++++++----------- app.js | 28 ++++++++++++++-------------- 2 files changed, 34 insertions(+), 25 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c0aa0ca..0803808 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,6 +5,7 @@ + @@ -43,7 +44,8 @@ - + + 1597348071361 @@ -199,7 +201,14 @@ - @@ -223,10 +232,10 @@ - + - + @@ -239,14 +248,14 @@ - + - - + + - + @@ -259,9 +268,9 @@ - + - + \ No newline at end of file diff --git a/app.js b/app.js index b97c5e2..13e0eb4 100644 --- a/app.js +++ b/app.js @@ -51,7 +51,7 @@ let kara = new Vue({ setTimeout(() => { this.aiMessage( // this.getAnswer(message) - this.getAnswerFromDB(message) + this.getAnswer(message) ); this.scrollDown(); }, 3000); @@ -144,18 +144,18 @@ let kara = new Vue({ return 'I don\'t know what to say..'; }, - getAnswerFromDB(message) { - let answer = null; - - axios.post('/karaAI/', { - message: message - }) - .then(function (response) { - console.log(response); - }) - .catch(function (error) { - console.log(error) - }) - } + // getAnswerFromDB(message) { + // let answer = null; + // + // axios.post('/karaAI/', { + // message: message + // }) + // .then(function (response) { + // console.log(response); + // }) + // .catch(function (error) { + // console.log(error) + // }) + // } } }) \ No newline at end of file