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

1249 commits

Author SHA1 Message Date
github-actions[bot]
60f6b11cdf
docs(contributor): contrib-readme-action has updated readme 2024-08-28 21:39:08 +00:00
kzndotsh
21da371278 fix(cases.py): replace UserConverter with bot.get_user and bot.fetch_user to handle cases where user is not found in cache 2024-08-28 20:16:55 +00:00
kzndotsh
8f0c52bbfb refactor(cases.py): simplify if-else logic for creating case fields to improve code readability 2024-08-28 20:01:32 +00:00
kzndotsh
1e134a3729 feat(contrib.yml): add auto_detect_branch_protection flag to disable automatic branch protection detection in GitHub Actions workflow 2024-08-28 18:36:18 +00:00
kzndotsh
c33fa5712f
Merge pull request #477 from allthingslinux/contributors-readme-action-xwhbegzFrJ 2024-08-28 14:32:39 -04:00
github-actions[bot]
4c8fbaca41
docs(contributor): contrib-readme-action has updated readme 2024-08-28 18:32:11 +00:00
kzndotsh
6b7c3bb117
Merge pull request #465 from allthingslinux/renovate/httpx-0.x-lockfile 2024-08-28 14:31:58 -04:00
electron271
e5cbd34003
Merge pull request #474 from allthingslinux/471-footer-for-protected-snippets
feat(snippets.py) show lock emoji if snippet is locked
2024-08-28 13:18:18 -05:00
electron271
efdec9edc8
feat(snippets.py) show lock emoji if snippet is locked 2024-08-28 13:15:06 -05:00
electron271
0985fa5f92
Merge pull request #469 from allthingslinux/imagemanipulation
add basic image manipulation
2024-08-28 12:45:38 -05:00
electron271
6cf28442b3
Merge branch 'main' into imagemanipulation 2024-08-28 12:45:30 -05:00
kzndotsh
942759196a
Merge pull request #470 from allthingslinux/electron271-patch-1 2024-08-28 13:42:13 -04:00
electron271
0acc5054df
Update PULL_REQUEST_TEMPLATE.md
make guideline checking less time consuming
2024-08-28 11:26:48 -05:00
electron271
8223b73fcf
Update PULL_REQUEST_TEMPLATE.md 2024-08-27 22:15:07 -05:00
electron271
449bca51a1
Update PULL_REQUEST_TEMPLATE.md
change stuff that isnt actually in tux and clarify stuff
2024-08-27 22:14:05 -05:00
electron271
0e486cd68a
add basic image manipulation 2024-08-27 22:04:56 -05:00
stingleyisme
632eb570aa new file: tux/cogs/services/bookmarks.py 2024-08-27 20:47:02 -05:00
github-actions[bot]
09dc200efc
docs(contributor): contrib-readme-action has updated readme 2024-08-27 23:56:50 +00:00
electron271
b7719f4e70
Merge pull request #446 from allthingslinux/funfacts
Add fun fact command
2024-08-27 10:32:54 -05:00
electron271
33b1ec4065
Merge branch 'main' into funfacts 2024-08-27 10:32:43 -05:00
renovate[bot]
da6ba041b4
fix(deps): update dependency httpx to v0.27.1 2024-08-27 12:57:47 +00:00
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