idoneam / Canary

Canary is a Python3 bot designed for the McGill University Community Discord Server. The bot provides helper functions to users, as well as fun functions, a quote database and custom greeting messages.
GNU General Public License v3.0
11 stars 7 forks source link

[BUG] ?translate is overly case-sensitive on language-region codes #473

Closed lazho closed 2 years ago

lazho commented 2 years ago

Bug Description

?translate does not allow "proper" capitalization of ISO language-region codes such as zh-CN

Reproduction Steps

  1. Go to any channel.
  2. Send ?translate zh-CN>en 日本
  3. Marty responds with:

    First argument zh-CN>en could not be parsed to a proper command string for this function. To learn more about how to use this command, call ?translate help

lazho commented 2 years ago

lol it was not fixed