Closed tasi788 closed 4 years ago
Did the bot send any message to the user when the error occurs? It should be:
✖ Error processing request: Language not found
It means that the specified language code couldn't be found in the locale map.
/switchlangcode
command downloads the locale_map.json
and then finds the corresponding language file. If no matching language code found, such error would be thrown.
I've tested several command, seems only /switchlangcode
can't handle the error.
Version
Docker
Screenshot
Closing the issue for inability to reproduce. Feel free to open again if anything new is found.
Describe the bug /switchlangcode doesn't handle error when it can't read/find locale file.
To Reproduce Steps to reproduce the behavior:
/switchlangcode zh_tw
to pmcenter bot (or something else)Expected behavior when the locale file not found or other cause abort, it should reply something to make user know something went wrong.
Logs