1. Refactor error handling methods to improve readability and maintainability.
2. Add detailed docstrings to methods for better understanding of their functionality.
3. Integrate Sentry SDK to capture and log exceptions for better error tracking.
feat(database/client.py): use DEBUG constant for Prisma log_queries parameter to enable/disable query logging based on environment
refactor(main.py): remove unnecessary comments, rearrange code for better readability, pass bot instance to setup_sentry function
feat(utils/constants.py): add DEBUG constant to toggle debugging based on environment variable
refactor(utils/sentry.py): refactor setup_sentry function to accept bot instance, simplify sentry_sdk.init parameters for better readability
feat(help.py): add support for command flag details in help messages to provide more comprehensive command information
fix(help.py): correct grammar in error logging message for consistency and clarity
feat(schema.prisma): add case_status field to Case model to track case status
fix(schema.prisma): change case_number and note_number types from Int to BigInt to handle larger numbers
docs(case.py): add docstrings to methods in CaseController class to improve code readability and provide detailed information about the methods' functionality and parameters
refactor(case.py): remove get_all_cases and get_case_by_id methods from CaseController class as they were not being used, reducing unnecessary code
feat(case.py): import logger from loguru for better logging capabilities
feat(case.py): import CaseWhereInput from prisma.types to handle case queries more efficiently
refactor(case.py): simplify case retrieval methods in CaseController
- Replace multiple specific case retrieval methods with more general methods that accept options for filtering.
- This reduces code duplication and improves maintainability.
- Add docstrings to new methods to improve code readability and provide usage information.
refactor: simplify and optimize case retrieval methods in the database layer
feat: add update_case method to allow case reason and status modification
feat: add delete_case_by_number method to allow case deletion by its number
refactor(schema.prisma): switch from PROD to DEV database URLs for development testing
feat(schema.prisma): add JAIL and UNJAIL to CaseType enum to support new jail feature
feat(schema.prisma): add case_target_roles field to Case model to store jailed user's roles
refactor(schema.prisma): add comments to case_number and case_expires_at fields for clarity
refactor(schema.prisma): add comment to reminder_channel_id field for clarity
feat(jail.py): add new Jail cog for jailing users in the server
feat(unjail.py): add new Unjail class to handle unjailing of users
feat(case.py): add method to get last jail case by target id and guild id for unjailing process
feat(flags.py): add JailFlags and UnjailFlags classes to handle command flags for jailing and unjailing commands
fix(settings.json): change DEV prefix from "~" to "$" to unify command prefixes across environments
refactor(run.py): remove unnecessary return type comments and update usage instruction for better clarity
refactor(help.py): improve help command output by including command prefix and improving formatting
chore(main.py): remove unnecessary TODO comment, as the issue has been addressed
refactor(wiki.py): remove alias "w" from wiki command for clarity and to avoid command conflicts
style(main.py): wrap command names and aliases in backticks for better readability in help command
refactor(main.py): add blockquote to command documentation summary for better readability in help command
refactor(flags.py): remove default value and int type from username_or_id flag in UnbanFlags to simplify flag usage and avoid type conflicts
style: update command usage syntax for better clarity
feat: add new Roles cog for role management commands
refactor(random.py, xkcd.py, run.py, ban.py, kick.py, notes.py, purge.py, slowmode.py, timeout.py, unban.py): simplify command aliases and usage instructions for better user experience
feat(run.py): change command aliases to 'compile' and 'exec' to better reflect command functionality
style(timeout.py): update docstring format for consistency
refactor(warn.py): simplify usage instructions for better user experience
feat(avatar.py): add support for optional member parameter to allow fetching avatar of other members or self
style(avatar.py): update docstring format for better readability
refactor(snippets.py): update usage instructions and add guild_only decorator for better command control
refactor(tldr.py): add alias and usage instruction for tldr command, add guild_only decorator for better command control
style(tldr.py): update docstring format for better readability
refactor(wiki.py): add aliases, usage instructions to wiki commands for better user experience
style(functions.py): standardize docstring format for consistency and readability
refactor(git.py): rewrite Git class to use new hybrid command system for improved command handling
chore(git.py): add TODO comment to remind of necessary rewrite to new hybrid command system
refactor: replace 'tux.services.github' with 'tux.wrappers.github' for better code organization
fix: remove unused imports 'githubkit.versions.latest.models' and 'discord.ext' to clean up code
refactor(git.py): replace app_commands.Group with commands.hybrid_group for better command handling
feat(git.py): add aliases and usage instructions to git and get_repo commands for better user experience
style(git.py): replace interaction with ctx in command functions for consistency with discord.py convention
fix(git.py): remove unnecessary interaction.response.defer() call in get_repo command to improve performance
refactor(git.py): replace interaction with ctx for better command handling
feat(git.py): add aliases and usage instructions to create_issue and get_issue commands
style(git.py): make embed fields inline=False for better readability
fix(git.py): replace create_error_embed with ctx.reply for error handling
chore(git.py): remove unused commands for cleaner codebase
feat(random.py, xkcd.py, run.py): add command aliases and usage instructions to improve user experience
refactor(random.py): update docstrings for better clarity and understanding
fix(main.py): use qualified_name instead of name for command title to include parent command names
style(main.py): format help message to be more readable and consistent
refactor(tux/cogs/fun/xkcd.py, tux/cogs/misc/run.py): move import statements to improve code organization
refactor(dev.py): enhance command descriptions, add guild_only decorator for better command control
style(eval.py): improve command usage description for better clarity
style(ban.py, kick.py): update command usage for better understanding
refactor(notes.py): enhance command descriptions, add guild_only decorator, improve error handling
refactor(moderation): update command usage and descriptions for better clarity
feat(moderation): add detailed docstrings to commands for better understanding of their functionality
style(moderation): remove unnecessary imports and improve code readability
refactor(main.py): add return type hint to send_bot_help method for better code readability
feat(main.py): add support for listing subcommands in help message to improve user experience
style(main.py): improve formatting of help message for better readability
fix(main.py): handle case when command has no aliases to prevent errors
feat(main.py): add listing of subcommands in cog help message to provide more detailed help
style(main.py): improve formatting of command help message for better readability