Новый апдейт
@bauhauswelcomebot:
1: Optimizations:
1.1: Logic:
1.1.1: Now additional buttons on welcome are in different order. Just in case.
1.1.2: Made text on all 3 buttons different.
1.1.3: Made possible to mute user without removing the message (for test purposes and may be useful in future).
1.2: Code
1.2.1: Optimized code by removing a redundant function ( get_welcome_messages_that_werent_removed() ) and fixed some namings.
1.2.2: Improved readability of generating buttons function – logic and namings.
1.2.3: Improved logging of purge()'s remove_messages_within_range() spitting out all the messages that were removed at once instead doing this after each removed message.
2: Features:
2.1: Made /unmute command.
3: Bug fixes:
1. Fixed critical bug where the data was written to wrong database (data from removed_messages.json has been writing to database/users_banned_on_join.json ) which was causing the app to be unable to process right data.