Releases: SecondThundeR/ghosty
2.2.0 Release
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 commandrussian_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 changingactive_variable
value
rsp
:- Added ability to bet points (Multiplayer + Bot modes)
- Added new function to change RSP state
user_points
: Initial addition - DescriptionpointsDB
: Initial addition - Descriptioneconomy_utils
: Initial addition - Description
Changed
bot_panel
: Switched from timers to empty inputs to read text properly and continue after certain timecogs
:- Switched some methods from public to private ones
- Switched methods calls from
class.method_name
toself.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 methodsparse_me_args
andsend_me_message
random_word
: Updatedmanage_words_table
to use newdelete_mode
argumentrussian_roulette
:- Changed
random
occurrences toSystemRandom
class - Moved out
bullet_list
andbullet_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`
- Changed
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 (RemovedDELETE FROM roulette_minus_words
)words_base
: Update code logic:- Added
delete_mode
argument formanage_words_table
andmanage_r_words_tables
(Replaced stringmode
argument) - Reverted clumsy SQL query generation system (All affected code parts were updated and fixed)
- Added
Removed
python-linter-workflow.yml
: A duplicate of the DeepSource functionality was not neededrandom_word
: Removed 'who' alias because it is no longer relevantrussian_roulette
: Removedminus
condition, asisnumeric()
denies negative numberswordsDB
: Removedroulette_minus_words
tablewords_base
: Removedreturn_query_result
,WARNING_MESSAGES
and all mentions ofroulette_minus.txt
androulette_minus_words
panel_scripts
: Removed call forclear_words_table
inchange_setup_status
words_base (txt): Removed
roulette_minus.txt`
Fixed
main
: Fixed old typo inon_command_error
cogs
: Fixed missing/incorrect docstringsrandom_ship
: Fixed incorrect behavior of fast shipping in certain scenariosrussian_roulette
: Fixed argument parsing when incorrect data was providedrsp
: Fixed wrong call for database in__manage_rsp_state
and some other bugs and issues
2.2.0 Release (Status: Beta / Iteration 5)
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 forcreate_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)
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)
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 changingactive_variable
valuepointsDB
: 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 torandom
instead ofSystemRandom
Fixed
russian_roulette
: Fixed argument parsing when incorrect data was providedeconomy_utils
: Fixed creation of points account (Updating the creation with a new variable)
2.2.0 Release (Status: Beta / Iteration 3)
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 - DescriptionpointsDB
: Initial addition - Descriptioneconomy_utils
: Initial addition - Description
Changed
help
: Updatedhelp_dict
(Added new command -очки
)random_word
: Updatedmanage_words_table
to use newdelete_mode
argumentrussian_roulette
:- Changed
random
occurrences toSystemRandom
class - Moved out
bullet_list
andbullet_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`
- Changed
database
: Updated clearing databases (RemovedDELETE FROM roulette_minus_words
)words_base
: Update code logic:- Added
delete_mode
argument formanage_words_table
andmanage_r_words_tables
(Replaced stringmode
argument) - Reverted clumsy SQL query generation system (All affected code parts were updated and fixed)
- Added
Removed
russian_roulette
: Removedminus
condition, asisnumeric()
denies negative numberswordsDB
: Removedroulette_minus_words
tablewords_base
: Removedreturn_query_result
,WARNING_MESSAGES
and all mentions ofroulette_minus.txt
androulette_minus_words
panel_scripts
: Removed call forclear_words_table
inchange_setup_status
words_base (txt): Removed
roulette_minus.txt`
2.2.0 Release (Status: Beta / Iteration 2)
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
toself.method_name
me
: Reordered methodsparse_me_args
andsend_me_message
Fixed
cogs
: Fixed missing/incorrect docstringsrandom_ship
: Fixed incorrect behavior of fast shipping in certain scenarios
2.2.0 Release (Status: Beta / Iteration 1)
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 timehelp
:- 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 inon_command_error
2.1.2 Release
New changes since 2.1.1 release:
Changed
README.md
: Changed info about changelogsrandom_ship
: Changed word 'выход' to 'выйти' (Handles deleting user from shipping)database
: Slightly changedreset_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 shippingusers
: Fixed statement, where shipping could fail even if there are two users in servergeneral_scripts
: Fixed checking for ignored user, when database lib returnsNone
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
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/leaverandom_ship
:- Added
реролл
command (Reset + Ship) - Added notification argument for reset (To hide reset message)
- Added check for
UsersNotFound
inrandom_ship
- Added removal from list shipping users (or addition)
- Added
user_checker
: Added function to parse test data (From list to dict)user_finder
: Added proper text capitalizationusers
:- 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 forget_shipping_users
exceptions
: Added main docstring for filemarkov_utils
:- Added proper word check
- Added default value for
return_checked_sentence
argument
shipping_utils
: Initial addition
Changed
requirements
: Renameddiscord.py
todiscord
main
: Update execution order and code for newget_avatar_bytes
changesbot_panel
: Addedif __name__
declarationhelp
: Moved help message to__init__
declarationmanage_admins
: Replaced if/else with if/return inadd_admin
markov_chains
: Changed check for number argumentme
:- 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 decorationswitch_avatar
: Changed code to prevent multiple calls to DB (To get current avatar cooldown)system
: Moved formatting logic to its own functionuptime
: Changed code to prevent multiple calls to DB (To get bot start time)user_checker
: Changed while to for loop inget_test_percent
database
: Added implementation ofexecutescript
and update all related code in other placeswords_base
: Changed check for downloading words base statusavatar_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 inrandom_ship
functionrsp
: Fixctx
implementation bugs which prevented from messages deletion or editingsystem
: Return missingdelete_after
and fixed text for regular message modemarkov_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)
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 forUsersNotFound
inrandom_ship
user_checker
: Added function to parse test data (From list to dict)user_finder
: Added proper text capitalizationusers
: Added check for raising custom exceptionsmarkov_utils
: Added proper word check / Added default value forreturn_checked_sentence
argument
Changed
requirements
: Renameddiscord.py
todiscord
main
: Update execution order and code for newget_avatar_bytes
changesbot_panel
: Addedif __name__
declarationhelp
: Moved help message to__init__
declarationmanage_admins
: Replaced if/else with if/return inadd_admin
markov_chains
: Changed check for number argumentme
: Added author name parsing for TTS mode (To prevent TTS from reading author mention)random_ship
: Changed way to check for active/in progress shipswitch_avatar
: Changed code to prevent multiple calls to DB (To get current avatar cooldown)system
: Moved formatting logic to its own functionuptime
: Changed code to prevent multiple calls to DB (To get bot start time)user_checker
: Changed while to for loop inget_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 inrandom_ship
function