latitudegames / AIDungeon

Infinite adventures await!
http://www.aidungeon.io/
MIT License
3.18k stars 556 forks source link

Fix AI seeing "You you" when the user inputs a command beginning with "You" or "I" #199

Closed KevinMoonglow closed 4 years ago

KevinMoonglow commented 4 years ago

Due to some confusion with case conversion and case-sensitivity, the protection put in place for preventing double "you" when the user inputs a command beginning with "you" or "I" wasn't working properly. This should fix that issue.

🧪 How to Test

  1. Begin the game and enter a command such as "You look around"
  2. Use "/print" to see the story log.
  3. Previously the user's command would appear as "> You you look around." This should now appear as "> You look around." instead.
ben-bay commented 4 years ago

Thanks for this fix!