gumerov-amir / TTMediaBot

A bot for music streaming to TeamTalk Servers.
https://ttmediabot.ru
MIT License
58 stars 65 forks source link

I can't change bot languaje #76

Closed Marc2p closed 2 years ago

Marc2p commented 2 years ago

I'm trying to change bot languaje, but I can't Even though I set the language in the config.json file, the bot is still in English. The same thing happens if I try to send the command cl languaje When I send the command, it says the language has been changed, but it's still English

lbk2907 commented 2 years ago

What error you get?

Marc2p commented 2 years ago

No errors. Here is the log:

`` ERROR [2022-07-30 18:50:41,491]: [5] User authorization failed: no access_token passed. in MainThread file: vk.py line 7 4 function initialize INFO [2022-07-30 18:50:42,641]: Started in MainThread file: init.py line 90 function run INFO [2022-07-30 18:50:53,414]: New message cl es from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:50:58,545]: New message sc from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:51:01,987]: New message rs from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:51:02,007]: Bot closed in Thread-6 file: init.py line 113 function close ERROR [2022-07-30 18:51:03,207]: [5] User authorization failed: no access_token passed. in MainThread file: vk.py line 7 4 function initialize INFO [2022-07-30 18:51:04,385]: Started in MainThread file: init.py line 90 function run INFO [2022-07-30 18:51:08,817]: New message h from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:51:28,191]: New message ua from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:52:02,483]: New message cc from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:52:05,656]: New message h from Markk in MainThread file: init.py line 95 function run INFO [2022-07-30 18:52:24,034]: Bot closed in MainThread file: init.py line 113 function close

It just seems to ignore the language setting in the config.json file, staying with English.

The same thing happens when sending the cl command, it says the language has been changed but it remains in English

Marc2p commented 2 years ago

I also tried clearing the cache file and clearing the cache with the cc command

lbk2907 commented 2 years ago

Do you already compile the language file by run the compile_locale.py in the tools folder?

Marc2p commented 2 years ago

Okay, there was the problem. I did not investigate and the documentation does not contain that information, it should be added.

Thank you very much!