harrygens commited on
Commit
4d2023a
1 Parent(s): a954786

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def chatbot(input, localvar):
89
  localvar['race'] = localRace(getChooseRole(reply))
90
  ans = "I choose "+ localvar['race'] +" as my race." + classAsk
91
  logging.info("ChooseRole:"+ans)
92
- if len(messages) == 3:
93
  localvar['class'] = getChooseClass(reply)
94
  ans = "My Race is "+ localvar['race'] +",I choose "+ localvar['class'] +" as my class." + classAns
95
  logging.info("ChooseClass:"+ans)
 
89
  localvar['race'] = localRace(getChooseRole(reply))
90
  ans = "I choose "+ localvar['race'] +" as my race." + classAsk
91
  logging.info("ChooseRole:"+ans)
92
+ if len(messages) == 4:
93
  localvar['class'] = getChooseClass(reply)
94
  ans = "My Race is "+ localvar['race'] +",I choose "+ localvar['class'] +" as my class." + classAns
95
  logging.info("ChooseClass:"+ans)