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

1278 commits

Author SHA1 Message Date
kzndotsh
cd58188c3c chore(.pre-commit-config.yaml): reorder pre-commit hooks for better organization
feat(.pre-commit-config.yaml): add pyupgrade hook to automatically upgrade syntax for newer versions of Python
fix(.pre-commit-config.yaml): remove duplicate gitleaks hook entry
2024-08-27 11:26:58 +00:00
kzndotsh
30462b6d2b refactor(ban.py, cases.py): rename 'target' to 'member' and 'case_number' to 'number' for better clarity
fix(ban.py, cases.py): replace 'case_target_id' with 'case_user_id' to align with new naming convention
feat(cases.py): change 'target' to 'user' in command flags for consistency with other changes

refactor(jail.py, kick.py, snippetban.py): rename 'target' to 'member' for better readability
refactor(jail.py): simplify jail conditions check and error handling for better maintainability
fix(jail.py, kick.py, snippetban.py): replace 'case_id' with 'case_number' in handle_case_response for correct case reference
refactor(snippetban.py): update 'case_target_id' to 'case_user_id' for consistency across codebase

refactor(moderation): rename 'target' to 'member' for better context understanding
fix(moderation): replace 'case_target_id' with 'case_user_id' to match new database schema
fix(moderation): replace 'case_id' with 'case_number' to match new database schema
refactor(timeout.py): add flag descriptions for better understanding
fix(unjail.py): simplify jail role check and remove unused jail channel check

refactor(untimeout.py, warn.py): rename 'target' to 'member' for better clarity
fix(untimeout.py): add comment to clarify the use of 'None' in timeout function
refactor(untimeout.py, warn.py): replace 'case_id' with 'case_number' for consistency
refactor(snippets.py): simplify ban_count and unban_count calculation
style(snippets.py): remove trailing whitespace in author.send function
2024-08-27 10:33:03 +00:00
kzndotsh
942105989b refactor(moderation/__init__.py): rename 'target' to 'user' for better readability
feat(moderation/__init__.py): add 'check_jail_conditions' function to validate jail role and channel existence and member condition
2024-08-27 10:32:26 +00:00
kzndotsh
883cc87fe9 refactor(flags.py): simplify flag names for better readability and usability
feat(flags.py): add 'target' as an alias for 'user' flag to increase flexibility in command usage
2024-08-27 10:32:10 +00:00
kzndotsh
ebc652ce1c refactor(schema.prisma, case.py, note.py): rename 'target' to 'user' for better clarity
- 'case_target_id' and 'note_target_id' renamed to 'case_user_id' and 'note_user_id' respectively
- 'case_target_roles' renamed to 'case_user_roles'
- All related function names and parameters updated to reflect these changes
2024-08-27 10:31:49 +00:00
kzndotsh
bdcf8087c9 refactor(cases.py): remove hardcoded usage strings and generate them dynamically for better maintainability
style(help.py): remove flag_type from flag_str to simplify the output and improve readability
2024-08-27 08:55:48 +00:00
kzndotsh
28a1397834 feat: add services directory to cogs 2024-08-27 04:43:58 -04:00
electron271
2463358dea
sourcery suggestion 2024-08-26 15:14:43 -05:00
electron271
2552bc0e91
finish and fix fun facts command 2024-08-26 15:10:07 -05:00
electron271
44dcb5f088
Merge branch 'main' into funfacts 2024-08-26 14:47:25 -05:00
electron271
40e27b6593
fix(snippets.py) fix snippet locking 2024-08-26 13:12:33 -05:00
electron271
45529a7e31
fix snippetinfo showing wrong user 2024-08-26 13:03:16 -05:00
kzndotsh
6234c13d28
Merge pull request #462 from allthingslinux/contributors-readme-action-djrXsHXC9B 2024-08-26 00:49:24 -04:00
github-actions[bot]
a7611563f6
docs(contributor): contrib-readme-action has updated readme 2024-08-26 04:48:17 +00:00
kzndotsh
5a7d33237b feat(contrib.yml): update contributors-readme-action configuration to improve contributors list display
- Increase columns_per_row to 8 for better visual organization
- Enable use_username to display contributor's username
- Set collaborators to 'all' to include all contributors in the list
2024-08-26 04:48:05 +00:00
kzndotsh
f5ba2c901a feat(.github/workflows/contrib.yml): add new workflow to automatically update contributors list
style(.github/workflows/linting.yml): add newline for better readability
style(.github/workflows/todo.yml): rename workflow for better clarity
feat(README.md): add contributors section to acknowledge project contributors
2024-08-26 04:19:33 +00:00
kzndotsh
97485d3cd6
Merge pull request #459 from HikariNeee/main 2024-08-26 00:00:25 -04:00
kzndotsh
df1554b58d
Merge pull request #455 from GabberBalls/snippeteditban 2024-08-25 23:59:22 -04:00
TargzBalls
84b01c3b5a
Merge branch 'main' into snippeteditban 2024-08-25 14:53:15 -05:00
electron271
65d426a326
Merge pull request #457 from exvh/main
image update
2024-08-25 10:41:28 -05:00
pre-commit-ci[bot]
f3b8042d96 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-25 15:08:11 +00:00
Hikari
7bcf71a9fe make some naming changes, remove an inaccurate docstring 2024-08-25 20:34:01 +05:30
kzndotsh
a190fe2d43 refactor(moderation cogs): use generate_usage function for command usage generation
fix(unban.py): move username_or_id from flags to command arguments for better clarity
refactor(timeout.py): remove parse_time_string function, use the one from utils.functions instead

feat(error.py): add comprehensive list of DiscordException for better error handling
refactor(error.py): reorganize error_map dictionary for better readability
style(error.py): uncomment useful debug logs for error handlers
feat(help.py): enhance flag_str formatting for better command help display

feat(flags.py): add generate_usage function to generate usage string for a command with flags
refactor(flags.py): simplify flag descriptions for better readability
feat(functions.py): add parse_time_string function to convert string representation of time into timedelta object
refactor(flags.py): remove username_or_id flag from UnbanFlags class as it's not used
2024-08-25 13:04:12 +00:00
kzndotsh
df9c5f21f5 refactor(config.py): group config commands under a single command group for better organization
feat(config.py): add get_roles and get_perms commands to fetch roles and permissions information
style(config.py): add docstrings to get_roles and get_perms commands for better code readability
2024-08-25 09:54:53 +00:00
kzndotsh
8e3d8cdc66 feat(emojis): add new snippetban and snippetunban emojis
feat(setup.py): add new Setup class for server setup
refactor(moderation): move handle_case_response method to ModerationCogBase class for code reusability
fix(moderation): replace async create_embed method with synchronous one
feat(moderation): add support for case handling in ban command
feat(cases.py): update snippetban and snippetunban emoji ids
refactor(cases.py): replace async create_embed method with synchronous one

refactor(jail.py, kick.py): remove redundant code and simplify jail and kick commands
feat(jail.py, kick.py): improve error handling and logging for jail and kick commands
style(jail.py, kick.py): improve code readability and maintainability by removing unnecessary imports and functions

refactor(snippetban.py, snippetunban.py, timeout.py): simplify case handling logic and error handling
feat(snippetban.py, snippetunban.py): add reason parameter to usage and make error messages ephemeral
fix(timeout.py): move send_dm call after successful timeout to ensure user is notified only when action is successful

refactor(unban.py, unjail.py): simplify unban and unjail commands by removing redundant code
feat(unjail.py): add error handling for missing jail role or jail channel
fix(unjail.py): ensure atomicity when removing jail role and adding previous roles to prevent partial role assignment

refactor(untimeout.py, warn.py): remove redundant code and simplify case response handling
fix(untimeout.py, warn.py): move send_dm call to after timeout/warn action to ensure it's sent after action is successful
2024-08-25 08:53:50 +00:00
kzndotsh
9e11b5fb67 refactor(.env.example): restructure and categorize environment variables for better readability and understanding
feat(.env.example): add comments to clarify usage of each environment variable for better user guidance
style(.env.example): remove unused SUPABASE_KEY variable to clean up the code
2024-08-25 06:15:22 +00:00
kzndotsh
d1bd866ea5 Revert "feat(.github/workflows/loc.yml): add new GitHub action to calculate and publish lines of code report"
This reverts commit 857d8115db.
2024-08-25 02:09:46 -04:00
kzndotsh
84fc117a03 Revert "chore(.pre-commit-config.yaml): exclude .archive/ directory from pre-commit checks to improve performance"
This reverts commit e82046de51.
2024-08-25 02:07:25 -04:00
kzndotsh
f7407086a5 chore(loc.yml): update directories path to absolute paths in lines of code calculation
fix(loc.yml): change 'ls -al' to 'ls -alR' for recursive directory listing in debugging step
refactor(loc.yml): remove 'exclude_lang' option as it's no longer needed
2024-08-25 06:05:50 +00:00
kzndotsh
30bd81584a chore(loc.yml): add step to print workspace info for debugging purposes
fix(loc.yml): correct directory paths in Calculate Lines of Code step to ensure correct directories are included in the calculation
2024-08-25 06:04:40 +00:00
kzndotsh
857d8115db feat(.github/workflows/loc.yml): add new GitHub action to calculate and publish lines of code report
feat(README.md): add placeholder for lines of code report to be updated by GitHub action
2024-08-25 06:00:35 +00:00
kzndotsh
e82046de51 chore(.pre-commit-config.yaml): exclude .archive/ directory from pre-commit checks to improve performance 2024-08-24 23:00:35 +00:00
kzndotsh
01e59baa5e
Merge pull request #451 from allthingslinux/renovate/mkdocs-material-9.x-lockfile 2024-08-24 18:51:33 -04:00
kzndotsh
a0a26cc2a8 chore(linting.yml): update Python version from 3.11 to 3.12 to keep up with the latest version
style(linting.yml): change commit message format to follow conventional commit standards
2024-08-24 22:48:53 +00:00
exvh
7805c7d064
Add files via upload 2024-08-25 00:08:25 +02:00
exvh
109199eb73
Delete assets/roles/text-editors/ed.png 2024-08-25 00:08:12 +02:00
kzndotsh
87b413fb18 fix(.github/ISSUE_TEMPLATE): wrap labels in quotes for bug_report.md and feature_request.md to ensure correct label assignment 2024-08-24 20:00:25 +00:00
kzndotsh
8b7db87899 style(feature_request.md): improve readability and structure of feature request template
feat(feature_request.md): add prefix "[FEATURE] - " to title for better issue identification

feat(feature_request.md): add label "type: feature-request" for better issue categorization
2024-08-24 19:58:12 +00:00
kzndotsh
fd19185f3f docs: update bug report template for better issue reporting
- Change the title and labels to be more descriptive and automatically label bugs
- Improve the structure and clarity of the issue template
- Add a section for code snippets or screenshots
- Update the environment section to be more relevant to the project
- Add a section for additional context to provide more information about the issue
2024-08-24 19:56:07 +00:00
kzndotsh
b99d04c209
Update issue templates 2024-08-24 15:54:13 -04:00
kzndotsh
d2607f5774 feat: add pull request template to guide contributors on PR submission 2024-08-24 19:53:39 +00:00
TargzBalls
8c4633ccbb
Merge branch 'main' into snippeteditban 2024-08-24 04:32:16 -05:00
kzndotsh
1d1c1bf003 refactor(cases.py): update command usage details for better clarity
feat(cases.py): add all_can_click and delete_on_timeout options to ViewMenu for improved user interaction
style(cases.py): replace menu buttons with more descriptive ones for better user experience
fix(cases.py): replace "?" with "⁉️" for missing case details for better error visibility
style(cases.py): change case date formatting from italic to underline for better readability
2024-08-24 09:30:28 +00:00
kzndotsh
07b4e67fad refactor(ban.py): change 'user' to 'member' in command usage and docstring for better context
fix(ban.py): add action parameter in send_dm method call to correctly specify the action taken
docs(ban.py): update docstring to specify that purge_days should be less than 7
2024-08-24 09:29:53 +00:00
kzndotsh
81d06cbb2c refactor(timeout.py): replace 'user' with 'member' for better context understanding
style(timeout.py): add a blank line for better code readability
2024-08-24 09:29:37 +00:00
kzndotsh
52b5c3ab6b refactor(unban.py): modify usage instruction to specify username_or_id instead of target for clarity
fix(unban.py): rearrange parameters in insert_case function call to match function definition
docs(unban.py): update flags parameter description to include specific flag details for better understanding
2024-08-24 09:29:23 +00:00
kzndotsh
13ce367cb2 refactor(unjail.py): replace 'user' with 'member' for better context understanding
fix(unjail.py): update error messages to reflect 'member' terminology for consistency
2024-08-24 09:29:04 +00:00
kzndotsh
3064ae565b refactor(untimeout.py): change 'user' to 'member' for better context understanding
feat(untimeout.py): add 'silent' flag to untimeout command for silent operation
docs(untimeout.py): update command documentation to reflect new 'silent' flag and 'member' terminology
2024-08-24 09:28:40 +00:00
kzndotsh
5dded916b4 refactor(warn.py): change 'user' to 'member' in warn function docstring for better clarity
fix(warn.py): modify warn command usage to include 'reason' and change 'flags' to 'silent' for better command understanding
2024-08-24 09:28:24 +00:00
kzndotsh
b67c5425ad refactor(flags.py): make all flag classes case insensitive for better user experience
style(flags.py): update descriptions for clarity and consistency
feat(flags.py): add 'silent' flag to TempBanFlags for optional DM to target
feat(flags.py): add more aliases to 'expires_at' flag in TempBanFlags for better usability
feat(flags.py): add CaseTypeConverter to 'type' flag in CasesViewFlags for proper type conversion
refactor(flags.py): change 'target' and 'moderator' flags in CasesViewFlags from Member to User for broader applicability
2024-08-24 09:28:03 +00:00