Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Releases: SecondThundeR/ghosty

2.2.0 Release

28 Aug 12:51
Compare
Choose a tag to compare

Note: This is final release on Python due to changes in discord.py library, mentioned here. To prevent bot from working after April 2022, bot will be rewritten to JavaScript (again) to use new Slash Commands feature

New changes since 2.1.2 release:

Added

  • help: Added ability to get info about certain command
  • russian_roulette: New features:
    • Added game with points (Now users with active points account can bet points and win/lose them)
    • Added dict with points multipliers
    • Added backup word for win/lose/zero conditions if there are no words in DB for them
    • Added new functions: __parse_args to parse arguments and return dictionary; __change_game_status to handle changing active_variable value
  • rsp:
    • Added ability to bet points (Multiplayer + Bot modes)
    • Added new function to change RSP state
  • user_points: Initial addition - Description
  • pointsDB: Initial addition - Description
  • economy_utils: Initial addition - Description

Changed

  • bot_panel: Switched from timers to empty inputs to read text properly and continue after certain time
  • cogs:
    • Switched some methods from public to private ones
    • Switched methods calls from class.method_name to self.method_name
  • help:
    • Changed bloated string to dictionary
    • Changed arguments of send_help_message
    • Added function to handle "compiling" full message for certain moments (Full list of commands / Single command)
    • Updated help_dict (Added new command - очки)
    • Slightly changed and optimized
  • me: Reordered methods parse_me_args and send_me_message
  • random_word: Updated manage_words_table to use new delete_mode argument
  • russian_roulette:
    • Changed random occurrences to SystemRandom class
    • Moved out bullet_list and bullet_count from __init__
    • Changed system of parsing arguments
    • Moved all logic for adding/deleting words from DB to their own functions
    • Moved getting random word from DB to its own function
    • Changed loop of getting bullets for bullet_list
    • Changed and updated some errors handling systems`
  • rsp:
    • Changed fail_delay (4 -> 3 seconds)
    • Slightly changed rsp_mode function to handle new arguments
    • Changed check for keyword for second player join
    • Converted all (except rsp_mode) methods to private
    • Update docstrings
    • Changed way of getting first and second users member object to mention them
    • Moved join and choice check to bottom
  • database: Updated clearing databases (Removed DELETE FROM roulette_minus_words)
  • words_base: Update code logic:
    • Added delete_mode argument for manage_words_table and manage_r_words_tables (Replaced string mode argument)
    • Reverted clumsy SQL query generation system (All affected code parts were updated and fixed)

Removed

  • python-linter-workflow.yml: A duplicate of the DeepSource functionality was not needed
  • random_word: Removed 'who' alias because it is no longer relevant
  • russian_roulette: Removed minus condition, as isnumeric() denies negative numbers
  • wordsDB: Removed roulette_minus_words table
  • words_base: Removed return_query_result, WARNING_MESSAGES and all mentions of roulette_minus.txt and roulette_minus_words
  • panel_scripts: Removed call for clear_words_table in change_setup_status
  • words_base (txt): Removed roulette_minus.txt`

Fixed

  • main: Fixed old typo in on_command_error
  • cogs: Fixed missing/incorrect docstrings
  • random_ship: Fixed incorrect behavior of fast shipping in certain scenarios
  • russian_roulette: Fixed argument parsing when incorrect data was provided
  • rsp: Fixed wrong call for database in __manage_rsp_state and some other bugs and issues

2.2.0 Release (Status: Beta / Iteration 5)

27 Aug 21:50
b43c25f
Compare
Choose a tag to compare

New changes since 2.2.0-beta.4.1 release:

Added

  • rsp:
    • Added ability to bet points (Multiplayer + Bot modes)
    • Added new function to change RSP state

Changed

  • user_points: Slightly changed statement for create_status in __create_account
  • rsp:
    • Changed fail_delay (4 -> 3 seconds)
    • Slightly changed rsp_mode function to handle new arguments
    • Changed check for keyword for second player join
    • Converted all (except rsp_mode) methods to private
    • Update docstrings
    • Changed way of getting first and second users member object to mention them
    • Moved join and choice check to bottom

Removed

  • python-linter-workflow.yml: A duplicate of the DeepSource functionality was not needed

Fixed

  • rsp: Fixed wrong call for database in __manage_rsp_state and some other bugs and issues

2.2.0 Release (Status: Beta / Iteration 4.1)

22 Aug 23:41
54df6f0
Compare
Choose a tag to compare

New changes since 2.2.0-beta.4 release:

Changed

  • general: Experimental use of DeepSource Transform Tool (Formatted code with black, yapf, autopep8 and isort)

2.2.0 Release (Status: Beta / Iteration 4)

22 Aug 23:01
Compare
Choose a tag to compare

New changes since 2.2.0-beta.3 release:

Added

  • russian_roulette: Added new functions: __parse_args to parse arguments and return dictionary; __change_game_status to handle changing active_variable value
  • pointsDB: Added new variable - active_roulette

This variable is necessary to limit simultaneous games with bets
(Sometimes the results of randomness in spam teams could give the same value several times)

Changed

  • russian_roulette: Switched back to random instead of SystemRandom

Fixed

  • russian_roulette: Fixed argument parsing when incorrect data was provided
  • economy_utils: Fixed creation of points account (Updating the creation with a new variable)

2.2.0 Release (Status: Beta / Iteration 3)

17 Aug 21:43
Compare
Choose a tag to compare

New changes since 2.2.0-beta.2 release:

Added

  • russian_roulette: New features:
    • Added game with points (Now users with active points account can bet points and win/lose them)
    • Added dict with points multipliers
    • Added backup word for win/lose/zero conditions if there are no words in DB for them
  • user_points: Initial addition - Description
  • pointsDB: Initial addition - Description
  • economy_utils: Initial addition - Description

Changed

  • help: Updated help_dict (Added new command - очки)
  • random_word: Updated manage_words_table to use new delete_mode argument
  • russian_roulette:
    • Changed random occurrences to SystemRandom class
    • Moved out bullet_list and bullet_count from __init__
    • Changed system of parsing arguments
    • Moved all logic for adding/deleting words from DB to their own functions
    • Moved getting random word from DB to its own function
    • Changed loop of getting bullets for bullet_list
    • Changed and updated some errors handling systems`
  • database: Updated clearing databases (Removed DELETE FROM roulette_minus_words)
  • words_base: Update code logic:
    • Added delete_mode argument for manage_words_table and manage_r_words_tables (Replaced string mode argument)
    • Reverted clumsy SQL query generation system (All affected code parts were updated and fixed)

Removed

  • russian_roulette: Removed minus condition, as isnumeric() denies negative numbers
  • wordsDB: Removed roulette_minus_words table
  • words_base: Removed return_query_result, WARNING_MESSAGES and all mentions of roulette_minus.txt and roulette_minus_words
  • panel_scripts: Removed call for clear_words_table in change_setup_status
  • words_base (txt): Removed roulette_minus.txt`

2.2.0 Release (Status: Beta / Iteration 2)

13 Aug 01:26
Compare
Choose a tag to compare

New changes since 2.2.0-beta.1 release:

Changed

  • cogs:
    • Switched some methods from public to private ones
    • Switched methods calls from class.method_name to self.method_name
  • me: Reordered methods parse_me_args and send_me_message

Fixed

  • cogs: Fixed missing/incorrect docstrings
  • random_ship: Fixed incorrect behavior of fast shipping in certain scenarios

2.2.0 Release (Status: Beta / Iteration 1)

09 Aug 21:19
Compare
Choose a tag to compare

New changes since 2.1.2 release:

Added

  • help: Added ability to get info about certain command

Changed

  • bot_panel: Switched from timers to empty inputs to read text properly and continue after certain time
  • help:
    • Changed bloated string to dictionary
    • Changed arguments of send_help_message
    • Added function to handle "compiling" full message for certain moments (Full list of commands / Single command)
    • Slightly changed and optimized

Removed

  • random_word: Removed 'who' alias because it is no longer relevant

Fixed

  • main: Fixed old typo in on_command_error

2.1.2 Release

08 Aug 18:58
Compare
Choose a tag to compare

New changes since 2.1.1 release:

Changed

  • README.md: Changed info about changelogs
  • random_ship: Changed word 'выход' to 'выйти' (Handles deleting user from shipping)
  • database: Slightly changed reset_bot_tables (Now resetting words database)

Removed

  • Changelog.md: Removed and older changelogs moved to Release section

Fixed

  • random_ship: Fixed incorrect processing of deleting/adding to shipping
  • users: Fixed statement, where shipping could fail even if there are two users in server
  • general_scripts: Fixed checking for ignored user, when database lib returns None

P.S. This release closes some broken things that were left in version 2.1.1. Work on code optimization will be released in the next version

2.1.1 Release

06 Aug 18:13
Compare
Choose a tag to compare

New changes since 2.1.0 release:

Added

  • general: Added workflow files for litners (Not included in final zip)
  • main: Added check for ignored users on initial bot startup and member join/leave
  • random_ship:
    • Added реролл command (Reset + Ship)
    • Added notification argument for reset (To hide reset message)
    • Added check for UsersNotFound in random_ship
    • Added removal from list shipping users (or addition)
  • user_checker: Added function to parse test data (From list to dict)
  • user_finder: Added proper text capitalization
  • users:
    • Added check for raising custom exceptions
    • Added some private functions for simplifying main functions
    • Added return of multiple names in get_members_name
    • Removed unnecessary while loop for get_shipping_users
  • exceptions: Added main docstring for file
  • markov_utils:
    • Added proper word check
    • Added default value for return_checked_sentence argument
  • shipping_utils: Initial addition

Changed

  • requirements: Renamed discord.py to discord
  • main: Update execution order and code for new get_avatar_bytes changes
  • bot_panel: Added if __name__ declaration
  • help: Moved help message to __init__ declaration
  • manage_admins: Replaced if/else with if/return in add_admin
  • markov_chains: Changed check for number argument
  • me:
    • Added author name parsing for TTS mode (To prevent TTS from reading author mention)
    • Moved arguments parsing to its own function
  • random_ship:
    • Changed way to check for active/in progress ship
    • Changed pre-result messages delay from 2 to 1 second
    • Moved some functions to shipping_utils (And slightly revamp them)
  • rsp: Moved WIN_VARIANTS outside of class to use static methods decoration
  • switch_avatar: Changed code to prevent multiple calls to DB (To get current avatar cooldown)
  • system: Moved formatting logic to its own function
  • uptime: Changed code to prevent multiple calls to DB (To get bot start time)
  • user_checker: Changed while to for loop in get_test_percent
  • database: Added implementation of executescript and update all related code in other places
  • words_base: Changed check for downloading words base status
  • avatar_changer:
    • Changed code to prevent multiple calls to DB (To get current avatar cooldown)
    • Changed way to return data (Now returning dictionary)
  • panel_scripts:
    • Moved getting current setup status to its own function
    • Changed way of checking missing modules

Fixed

  • readme: Fixed some typos (Not included in final zip)
  • random_ship: Fixed docstring in random_ship function
  • rsp: Fix ctx implementation bugs which prevented from messages deletion or editing
  • system: Return missing delete_after and fixed text for regular message mode
  • markov_utils: Fix adding None to args as a number

P.S. There is a chance of releasing 2.1.2 because of some places where optimization is needed before moving to 2.2 release

2.1.1 Release (Status: Alpha / Iteration 1)

11 Jul 10:10
Compare
Choose a tag to compare

New changes since 2.1.0 release:

Added

  • general: Added workflow files for litners (Not included in final zip)
  • random_ship: Added реролл command (Reset + Ship) / Added notification argument for reset (To hide reset message) / Added check for UsersNotFound in random_ship
  • user_checker: Added function to parse test data (From list to dict)
  • user_finder: Added proper text capitalization
  • users: Added check for raising custom exceptions
  • markov_utils: Added proper word check / Added default value for return_checked_sentence argument

Changed

  • requirements: Renamed discord.py to discord
  • main: Update execution order and code for new get_avatar_bytes changes
  • bot_panel: Added if __name__ declaration
  • help: Moved help message to __init__ declaration
  • manage_admins: Replaced if/else with if/return in add_admin
  • markov_chains: Changed check for number argument
  • me: Added author name parsing for TTS mode (To prevent TTS from reading author mention)
  • random_ship: Changed way to check for active/in progress ship
  • switch_avatar: Changed code to prevent multiple calls to DB (To get current avatar cooldown)
  • system: Moved formatting logic to its own function
  • uptime: Changed code to prevent multiple calls to DB (To get bot start time)
  • user_checker: Changed while to for loop in get_test_percent
  • avatar_changer: Changed code to prevent multiple calls to DB (To get current avatar cooldown) / Changed way to return data (Now returning dictionary)
  • panel_scripts: Moved getting current setup status to its own function

Fixed

  • readme: Fixed some typos (Not included in final zip)
  • random_ship: Fixed docstring in random_ship function