-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code to improve readability and maintainability
Refactor and optimize code to adhere to DRY, KISS, YAGNI, SOLID, and SoC principles. * **cogs/autoreact_cog.py** - Remove `react_stop` command and related code. - Update `react` command to handle stopping reactions. * **cogs/help_cog.py** - Refactor `help_command` function to improve readability. - Add `send_all_categories` and `send_category_commands` helper methods. * **utils/database.py** - Consolidate database connection functions into a single `connect_database` function. - Update `determine_database` to use the new `connect_database` function. * **utils/command_handler.py** - Optimize `load_cogs` method to avoid repetitive code. * **cogs/reactstop_cog.py** - Delete file as its functionality is now handled in `cogs/autoreact_cog.py`.
- Loading branch information
1 parent
3b72bfc
commit aab9a04
Showing
5 changed files
with
44 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters