smacademic / project-bdf

project-bdf created by GitHub Classroom
2 stars 0 forks source link

Specifying language code for translation is error prone #97

Closed calebeda closed 5 years ago

calebeda commented 5 years ago

Describe the bug If someone were to request a translated transcription but also had extra text after the username, keyword, and language code then they run the chance of the bot mistaking that other text for a possible language code.

To Reproduce Steps to reproduce the behavior:

  1. Run the bot
  2. Request a translated transcription but with the word 'text' after the desired language code
  3. See error, which is the bot translating to the language code te that it pulled from 'text'

Expected behavior For the bot to reply with a transcription translated to the language specified.

Project information This issue has been present since the introduction of the translation feature