mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
5e67bc6306
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 |
||
---|---|---|
.. | ||
tests | ||
bot.py | ||
command_cog.py | ||
ctx_error_handler.py | ||
dependency-review.yml | ||
error_handler.py | ||
ghost_pings.py | ||
ghub.py | ||
guild.py | ||
helpers.py | ||
kaizen_ping_counter.py | ||
message.py | ||
on_member_update.py | ||
on_message.py | ||
permissions.py | ||
settings.ini | ||
test_error_handler.py | ||
thread.py | ||
tux_logger.py |