Skip to content

Commit

Permalink
changes the conversation much better
Browse files Browse the repository at this point in the history
  • Loading branch information
agnescameron committed May 21, 2020
1 parent 8c22721 commit 2a1f6c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2a1f6c9

Please sign in to comment.