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

1516 commits

Author SHA1 Message Date
electron271
ace679e918
Merge branch 'main' into tempban 2024-09-06 09:41:09 -05:00
renovate[bot]
662ab88eeb
fix(deps): update dependency pydantic to v2.9.0 2024-09-05 20:05:35 +00:00
renovate[bot]
163f34837a
fix(deps): update dependency ruff to v0.6.4 2024-09-05 20:05:24 +00:00
kzndotsh
f8e46a32cc refactor(snippets.py): remove content details from logger.info for better privacy
style(snippets.py): correct indentation for ctx.send and logger.info in edit snippet section for better code readability
2024-09-05 15:50:07 +00:00
kzndotsh
8d24bb9eac fix(case.py): move increment_case_count after get_next_case_number to ensure correct case number assignment 2024-09-05 15:46:37 +00:00
kzndotsh
9f0c5cb5ae refactor(moderation): move jail conditions check from ModerationCogBase to Jail class
fix(jail.py): ensure jail role is added to member even if no roles are removed
perf(case.py): optimize case creation by storing next case number in a variable
2024-09-05 15:38:43 +00:00
petabyte_
1cc97ef8fb
Merge branch 'allthingslinux:main' into tempban 2024-09-05 16:15:32 +01:00
kzndotsh
23eaa94e90 fix(cases.py): change default case number from "⁉️" to "0000" for better error handling and readability 2024-09-05 14:30:30 +00:00
d564cad580 Refactor tempban & optimize 2024-09-05 10:29:55 -04:00
kzndotsh
0b36bc1fe9 fix(cases.py): format case_number to always have 4 digits for consistency
feat(cases.py): add fallback value for case_number when it's None to prevent potential errors
2024-09-05 14:26:09 +00:00
petabyte-imo
0f2a588dfa oopsiess 2024-09-05 14:54:13 +01:00
petabyte_
46dbf10344
Merge branch 'allthingslinux:main' into tempban 2024-09-05 14:49:55 +01:00
petabyte-imo
c5e0d48b30 Made stuff a bit cleaner and fix some issues related to tempban 2024-09-05 14:49:31 +01:00
aa4e2712a1 Refactor some things & fix eval error output 2024-09-05 09:37:17 -04:00
5b8f69818b feat: Add image and thumbnail URL support to EmbedCreator 2024-09-05 08:21:54 -04:00
59798fc8cd Add more information to the docstring of create_embed 2024-09-05 07:05:20 -04:00
596e24c69f Add more customizability in EmbedCreator 2024-09-05 07:01:05 -04:00
06ae40fc99 Remove create_error_embed from embed.py (replaced by EmbedType.ERROR 2024-09-05 06:30:11 -04:00
0ae2961979 chore: Use structured logging embeds.py 2024-09-05 06:25:57 -04:00
a47571d9b0 chore: Fully type hint embeds.py 2024-09-05 06:24:52 -04:00
2ee09c9666 Remove create_embed_footer from embeds.py 2024-09-05 06:22:09 -04:00
74c390ad0f refactor: Update embed creation in guild config commands 2024-09-05 06:19:42 -04:00
wlinator
8556a1c33f fix: Linting and formatting via Ruff 2024-09-05 10:17:29 +00:00
cd92c15dbc
Merge branch 'main' into tess-improve-embeds 2024-09-05 06:17:12 -04:00
abc369dd0f Move embeds to ui dir 2024-09-05 06:13:32 -04:00
fab8a93408 refactor: Update embed creation in remindme.py 2024-09-05 06:11:55 -04:00
3f9e2a9f76 Remove "error" from the title where it's already in the author text 2024-09-05 06:11:07 -04:00
f1bd14364d refactor: Update embed creation in moderation cogs 2024-09-05 06:08:51 -04:00
fb797584b0 refactor: Rewrite most embeds 2024-09-05 05:47:40 -04:00
6b1cf29828 refactor: Rewrite EmbedCreator 2024-09-05 05:22:25 -04:00
kzndotsh
058c787518
Merge pull request #517 from allthingslinux/tess-prefix-config 2024-09-05 04:43:46 -04:00
8290622480 fix: Use clean_prefix in help command 2024-09-05 04:17:41 -04:00
kzndotsh
8a1ea92783 feat(afk.py): replace hardcoded max_name_limit with constant NICKNAME_MAX_LENGTH for better maintainability
feat(constants.py): add NICKNAME_MAX_LENGTH constant to centralize configuration values
2024-09-05 07:57:45 +00:00
kzndotsh
df4c721834 refactor(dev.py, imgeffect.py, config.py, export.py, setup.py, info.py, membercount.py, __init__.py, ban.py): replace conditional checks for guild existence with assert statements for cleaner code
feat(imgeffect.py): add additional logging for better traceability
refactor(info.py): move button addition logic directly into paginated_embed method for better code organization
fix(__init__.py): correct string formatting in error messages for better user feedback

refactor(moderation): replace logger warnings with assert statements for guild context checks
style(moderation): improve readability of case action emoji assignment in cases.py
docs(moderation): update method descriptions for clarity in jail.py and purge.py
refactor(moderation): improve argument parsing in slowmode.py
style(moderation): improve code readability in slowmode.py and unjail.py

refactor(warn.py, snippets.py): replace conditional checks for guild context with assert statements for cleaner code
fix(poll.py): remove unnecessary return statement in reaction check
style(snippets.py): remove unnecessary type ignore comment for improved readability
2024-09-05 07:51:35 +00:00
9bbb969c67 fix(afk.py): improve AFK functionality error handling 2024-09-05 03:49:36 -04:00
6e951283bc feat: Add input validation for the prefix 2024-09-05 03:33:07 -04:00
962e13656e Refactor get_prefix method in help to use default prefix if none is found 2024-09-05 03:27:08 -04:00
3a9a225d32 chore: Update settings.py 2024-09-05 03:26:11 -04:00
439ca7a52b feat: Refactor guild prefix commands for clarity and consistency 2024-09-04 12:50:28 -04:00
pre-commit-ci[bot]
e293eabbb3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-09-04 16:49:40 +00:00
f4e9efde72 feat: Add command to clear guild prefix 2024-09-04 12:49:05 -04:00
petabyte-imo
bbd8fb62aa Added a set_tempban_expired and get_expired_tempbans function and changed up tempban a bit 2024-09-04 17:48:13 +01:00
petabyte_
c035205c1f
Merge branch 'allthingslinux:main' into tempban 2024-09-04 17:34:30 +01:00
079c8aafee chore: Update config set_prefix output 2024-09-04 12:26:11 -04:00
dc65c1e23f Update get_guild_prefix method to use table.find_first directly 2024-09-04 11:47:43 -04:00
49aae639ab feat: Update get_prefix function to retrieve custom command prefix from GuildConfigController 2024-09-04 11:36:19 -04:00
7f1aa5395f feat: Add command to set guild prefix 2024-09-04 11:13:54 -04:00
cf44ab4011 feat: Add methods to get and update guild prefix 2024-09-04 11:09:51 -04:00
441655beb3 chore: Update GuildConfig model with optional prefix field 2024-09-04 11:05:53 -04:00
14176a147c feat: Add get_prefix function for custom command prefix 2024-09-04 11:04:32 -04:00