From 1ea1c36c54929a52502d5be05a74835a1908103e 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 | 30 +++++++++++++++--------------- 2 files changed, 35 insertions(+), 26 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..5a9b537 100644 --- a/app.js +++ b/app.js @@ -50,8 +50,8 @@ let kara = new Vue({ setTimeout(() => { this.aiMessage( - // this.getAnswer(message) - this.getAnswerFromDB(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