Skip to content

Releases: jokelbaf/Sanya-Nya

v1.0.5

09 Mar 16:29
Compare
Choose a tag to compare

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.

v1.0.4

31 Oct 16:26
Compare
Choose a tag to compare

Large Bot localization update

In this release localization system was fully reworked and the Bot itself was made more customizable. Fixed some bugs as well.

Improvements

  • Bot prefix can now be changed in config.
  • Bot presence and activity type can now also be changed in config.
  • Logger was fixed and now it works as intended.
  • Fixed bug with commands in DM. Now only help, status and ping commands can be used in direct messages.
  • Improved cogs reload command for developers.

Per-user localization support

Bot now supports localization per user. Some new settings were added to config:

  • language - default language for all commands, views and messages. Can be set to ru, en or auto. If language is set to auto, Bot will use user's client language. If client language can't be defined, the following data will be used in the appropriate order if not available:

    1. Language that is stored in cache after any interaction was executed by user.
    2. Language of the guild where this command was executed.
    3. An alternative_language.
  • alternative_language - this is used if language is set to auto and Bot can't define user's client language.

  • cache_time - time of user's locale being stored in cache in seconds.

  • max_cached_users - max amount of users that can be stored in cache at the same time.

Commands names, descriptions, options and arguments were also localized. Language of commands can't be changed and it always depends on user's Discord client language.

v.1.0.3

31 Oct 01:11
45db9d4
Compare
Choose a tag to compare

Major bot update

In this release ton of bugs and typos was fixed and some new features were added.

New features

  • Bot is now translated to english. You can set it's language in Config.py file (This will affect Bot's presense, embeds and messages).
  • Added status command with useful (or not) information about current Sanya's status.
  • Changed language of logs. Every action logged to console is now on russian -> english.

Bugs fixes and improvements

  • Removed "premium mode" that left from old sources in embeds.
  • Fixed typos in readme, embeds and messages.
  • Added specification of error type Modal to music views.
  • Changed some links and images to fit Bot's design style.
  • Volume command now works fine (probably dev of wavelink lib fixed it).

v1.0.2

12 Oct 23:19
Compare
Choose a tag to compare

Release of version 1.0.2

Quick fix of "Logger module has no attribute on_ready" error.

v1.0.1

12 Oct 23:13
d4d5eea
Compare
Choose a tag to compare

Release of version 1.0.1

This release is mostly a bug fix. I've also fully prepared Sanya-nya for deployment to Railway to host it for free.

List of all bug fixes

  • Fixed connecting to a Voice Channel for too long.
  • Fixed unsupported operand type when deploying to Railway.
  • Removed ugly cross emoji from music embeds.
  • Fixed "Player object has no attribute message"
  • Fixed "Player object has no attribute message" (2)

Improvements

  • Added all necessary files to host bot on Railway.
  • Added some descriptions to functions and to a config file.
  • Removed useless functions in Logger.
  • Removed useless commands in SanyaGuild module.
  • Updated readme and added some useful information to it.

I've also added an invitation link for those users who want to invite bot but not to host it by themselves.

v1.0.0

12 Oct 16:10
9462276
Compare
Choose a tag to compare

First release

This is first release of this bot source code with general info about it's commands.

Commands

List of all bot's commands and their description on russian.

  • ping - Текущий пинг бота
  • help - Вы сейчас тут
  • play - Включить или добавить трек в очередь
  • stop - Остановить плеер, отключить бота от ГК
  • loop - Зациклить текущий трек
  • skip - Пропустить трек
  • queue - Просмотр очереди треков
  • pause - Остановить проигрывание
  • volume - Изменение громкости (Не работает)
  • resume - Возобновить проигрывание
  • replay - Проиграть текущий трек заново
  • previous - Включить предыдущий трек