From 2a1f6c97d6163cfc6f00fdbfcfd9921783388f0d Mon Sep 17 00:00:00 2001 From: agnescameron Date: Thu, 21 May 2020 18:37:57 -0400 Subject: [PATCH] changes the conversation much better --- src/App.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 89c3167..2d708bf 100644 --- a/src/App.js +++ b/src/App.js @@ -19,7 +19,7 @@ import {getOpponentName} from './helpers/opponentNames'; import {classNames, fontSizes, fontColors} from './helpers/styles'; import {getBotDelay, getSeconds, getBrowserName, asyncTimeout} from './helpers/Utils'; import {getStateAtStep, advanceStep, bots} from './helpers/StateHelpers'; -import { textProcessor, chooseTruth, handleError, getFiller, listContexts } from './helpers/textProcessing' +import { textProcessor, chooseTruth, changeConversation, handleError, getFiller, listContexts } from './helpers/textProcessing' import { handleResize, handleHeaderText } from './helpers/DOM' import './styles/App.css'; @@ -163,8 +163,8 @@ class App extends Component { //if there are no contexts, trigger a change of subject else { - response = await textProcessor('what???', this.state.currentBot, this.state.messages, - this.state.opponent, this.state.name); + const newtopic = await changeConversation('', this.state.currentBot); + response = newtopic.response; } this.processResponse(response);