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

1348 commits

Author SHA1 Message Date
electron271
693d3714d0
Merge pull request #515 from petabyte-imo/tempban
Temp Ban command & Unban Task
2024-09-06 09:42:01 -05:00
electron271
ace679e918
Merge branch 'main' into tempban 2024-09-06 09:41:09 -05: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
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
8263108622 refactor: Update default prefixes for production and development environments 2024-09-04 11:01:53 -04:00
kzndotsh
7b5c19f9d3
Merge pull request #513 from allthingslinux/renovate/pyright-1.x-lockfile 2024-09-04 10:19:49 -04:00
kzndotsh
ee5fc9fe7a
Merge pull request #504 from teilorr/afk 2024-09-04 10:19:05 -04:00
kzndotsh
69a84bdff7 refactor(afk.py): improve readability by adding function docstrings and type hints
style(schema.prisma, afk.py): improve code formatting for better readability
feat(afk.py): add welcome back message when user returns from AFK
fix(afk.py): ensure guild exists before inserting AFK status to prevent errors
2024-09-04 14:16:05 +00:00
kzndotsh
4ecad0d509 fix: Linting and formatting via Ruff 2024-09-04 14:04:37 +00:00
kzndotsh
f0dcc745a9
Merge branch 'main' into afk 2024-09-04 10:04:13 -04:00
edcda8fa48
Merge branch 'main' into tempban 2024-09-04 10:01:07 -04:00
kzndotsh
f866b4e60e
Merge pull request #514 from allthingslinux/tess-starboard 2024-09-04 10:00:29 -04:00
pre-commit-ci[bot]
e9868f8885 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-09-04 13:59:49 +00:00
kzndotsh
b1b11a66f7 feat(starboard.py): add new Starboard cog for managing starboard functionality
refactor(starboard.py): move starboard functionality from __init__.py to starboard.py for better organization and readability

docs(starboard.py): add detailed docstrings to all methods in StarboardController and StarboardMessageController classes to improve code readability and provide better understanding of the methods' functionalities and expected parameters and return values.
2024-09-04 13:59:11 +00:00
petabyte-imo
707e1614bf Added reason to unban 2024-09-04 14:56:57 +01:00
petabyte-imo
49d6e45b77 oopsie 2024-09-04 14:31:36 +01:00
petabyte-imo
c3ca0cc275 Fixed the tempban_check looped task and added some comments 2024-09-04 14:28:01 +01:00
petabyte-imo
f183569bdd Fixed the tempban_check looped task and added some comments 2024-09-04 14:27:59 +01:00
petabyte-imo
e0c3b0d0e1 Added a tempban command and a function that gets all guilds from the db 2024-09-04 13:55:28 +01:00
87478ec5c7 chore: Improve documentation 2024-09-04 08:20:28 -04:00
9091d76368 Merge branch 'main' into tess-starboard 2024-09-04 08:11:34 -04:00
kzndotsh
f2cd0d58a7 refactor(schema.prisma): restructure schema for better organization and readability
feat(schema.prisma): add Starboard and StarboardMessage models for starboard feature
fix(schema.prisma): remove unnecessary comments and adjust model attributes for better data handling
feat(cases.py): change case_number to be dynamic instead of fixed format
feat(case.py): add functions to handle case count incrementation for better case tracking
2024-09-04 11:57:23 +00:00