1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00
Commit graph

3 commits

Author SHA1 Message Date
kzndotsh
5e67bc6306 feat(ctx_error_handler.py): add new error handler for command context
refactor(error_handler.py): update error handling logic to improve error messages and logging
fix(error_handler.py): handle app command errors separately to avoid conflicts
style(error_handler.py): improve code readability and maintainability by simplifying error handling logic

feat(test_error_handler.py): add new file for testing error handling in discord.py
This new file contains a Cog class with commands to raise every type of discord.py error for testing purposes.

feat: add error handling commands to ErrorTests cog in discord bot

This commit adds a series of commands to the ErrorTests cog in the discord bot. Each command raises a specific exception when invoked, allowing for testing and debugging of error handling mechanisms. The exceptions covered include DisabledCommand, CommandInvokeError, CommandOnCooldown, MaxConcurrencyReached, various ExtensionErrors, ClientException, and CommandRegistrationError.

refactor(error_handler.py): rename ErrorHandler to UnifiedErrorHandler for clarity
feat(error_handler.py): add support for traditional command errors and app command errors
fix(error_handler.py): improve error message for better user experience
style(error_handler.py): refactor code for better readability and maintainability
2024-05-01 04:10:58 +00:00
kzndotsh
f21d7233f5 feat(ghub.py): add new GitHub commands for discord bot
refactor(ghub.py): improve error handling and code readability by extracting common code into helper functions

feat: add create, get, and comment commands to GitHub bot
- The create command allows users to create a pull request in a specified repository.
- The get command retrieves a specific pull request from a repository.
- The comment command allows users to comment on a specific pull request in a repository.
These changes were made to enhance the functionality of the GitHub bot.

chore(ghub.py): remove ghub.py file as it is no longer needed in the project
2024-04-18 07:08:03 +00:00
kzndotsh
135c6ab0a0 chore(structure) move tmp to .archive + create infra dir 2024-04-11 18:10:01 -04:00