Localization Update, Database and Optimization
The localization system has been improved, allowing users to change their language using the language
command. This was achieved by connecting the Postgres database to the railway project, increasing the amount of resources used by the project but improving overall interaction with end-users.
Improvements and Fixes
- Declared return types for all functions.
- Improved code readability.
- Everything logged to console is now in english.
- Upgraded Python version to 3.11.0.
- Moved command log functions to
Functions.py
. - Upgraded library versions in
requirements.txt
. - Rewrote all functions in
Config.py
into parameters. - Corrected spelling issues in
Embeds.py
and code comments. - Fixed an error where a player playing and searching for the next one failed with a 404 error.
New Features and Major Improvements
- Added
eval
(prefix only) command for developers to execute code directly from Discord chat. - Connected the Postgres database to the project (added information about it to the readme as well).
- Added the
language
command to enable users to switch languages. - Completely rewrote the main
bot.py
file with several improvements. - Added command logs for the Info and
Settings
modules. - Renamed some files and restructured the project a bit.
- Completely rewrote the
Functions.py
file, implementing better caching as well as database queries.