-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing the path to the tranlsations.json #244
Conversation
the translations.json is located inside the parent directory so this change will fix it.
How are you starting the bot that is not working with the current version? |
Hi @AlexHTW I hope you are doing well. I just upgraded from So, I had to tell the script that translations.json is located in the parent directory of /bot/ and not in the same directory. |
Hey, @bestmgmt. Thanks! Hope you'de doing well, too! I understand. I asked because for me it works using What about the path for usage_logs in Anyway, your solution seems good to me for the translations, maybe someone more knowledgeable on this topic can give their opinion on this. I am currently not able to test this for all situations, hopefully tonight. |
works for me using |
FYI, I am using Supervisor instead of Docker. It is much more powerful and managing the updates is way easier compared to Docker since you did not implement any auto updaters such as WatchTower ( https://github.com/containrrr/watchtower ) You can either move the translations.json file under the bot/ folder or modify that code snippet mentioned there. I used general approach using By the way, as I mentioned, the code was working fine in the I suspect your code was not properly updated to the latest release due the steps required to manually update Docker containers/images, otherwise there is no way your Python code can autonomously find the translations.json, located in the parent directory, using the current code:
Instead, you have to either define where it is located:
or, simply move the transations.json under the main bot/ directory. |
Hey @bestmgmt
No, I am always using the latest main branch, not using the released docker images.
When the bot is started with |
Thanks @bestmgmt! |
Fixing the path to the tranlsations.json
the translations.json is located inside the parent directory so this change will fix it.