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

939 commits

Author SHA1 Message Date
kzndotsh
19e97b7cba fix(Dockerfile): separate nodejs and npm installation into a separate RUN command to improve Docker layer caching 2024-08-06 16:15:31 +00:00
kzndotsh
0396302495 refactor(event.py): remove unnecessary logging statements to improve code readability and performance 2024-08-06 16:10:54 +00:00
kzndotsh
a721d36a1c refactor(ping.py): replace discord.Interaction with commands.Context for better compatibility
feat(ping.py): add usage instruction to ping command for better user guidance
fix(ping.py): replace interaction.response.send_message with ctx.send for correct message sending
style(ping.py): remove unused imports to clean up code
2024-08-06 16:09:41 +00:00
kzndotsh
547f623be1 docs: add CONTRIBUTING.md to guide contributors on how to contribute to the project 2024-08-06 16:02:39 +00:00
kzndotsh
b9937825b9 feat(Dockerfile): add nodejs and npm to Dockerfile to support Node.js based applications 2024-08-06 15:49:26 +00:00
kzndotsh
e6a7269a09 fix(Dockerfile): remove entrypoint and use CMD for better debugging
refactor(docker-compose.yml): remove version and command for simplification and to avoid redundancy with Dockerfile
2024-08-06 15:45:49 +00:00
kzndotsh
ccd039e883 fix(rolecount.py): modify emoji fallback to use correct syntax for custom emojis to ensure correct display when bot doesn't have access to the emoji 2024-08-06 15:38:21 +00:00
kzndotsh
37c2d0c2e2 refactor(rolecount.py): improve code readability and maintainability by adding docstrings and renaming methods with underscore prefix to indicate private methods
fix(unjail.py): correct log messages from 'Jail command' to 'Unjail command' for accurate logging
feat(unjail.py): return unjail_case from _insert_unjail_case method to improve code clarity and maintainability
2024-08-06 15:31:09 +00:00
kzndotsh
e390f38a84 feat(rolecount.py): sort roles by the number of members in descending order for better data representation
feat(rolecount.py): add go_to_first_page and go_to_last_page buttons to the menu for improved navigation
2024-08-06 09:47:49 +00:00
kzndotsh
ae5006e12d chore: update pyproject.toml with new ruff rules 2024-08-06 05:38:55 -04:00
kzndotsh
d4bea66954
Merge pull request #375 from allthingslinux/pre-commit-ci-update-config 2024-08-06 04:52:35 -04:00
pre-commit-ci[bot]
c7601d02b8
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.5.6)
2024-08-05 20:55:11 +00:00
kzndotsh
94e6093b72
Merge pull request #373 from allthingslinux/renovate/prisma-0.x 2024-08-05 11:02:18 -04:00
kzndotsh
95a8b81825
Merge pull request #370 from allthingslinux/renovate/ruff-0.x-lockfile 2024-08-05 10:23:32 -04:00
kzndotsh
09cf41fe04 docs: add CONTRIBUTING.md to guide contributors on how to contribute to the project 2024-08-05 14:23:18 +00:00
renovate[bot]
6c839e6fd0
fix(deps): update dependency prisma to ^0.14.0 2024-08-04 18:45:56 +00:00
kzndotsh
edefd3a1df chore(archive): remove old files and update docs 2024-08-04 12:31:27 -04:00
kzndotsh
e8b041fae8 refactor(activity.py): replace direct member count call with placeholder for better code readability
fix(activity.py): use guild.member_count instead of len(guild.members) to avoid potential NoneType error
feat(activity.py): add delay before running activity task to ensure bot is fully ready before starting activity loop
2024-08-04 00:53:04 +00:00
kzndotsh
73853e899b feat(event.py): add flag_list to handle specific flag emojis
fix(event.py): remove reaction if emoji is in flag_list to prevent misuse of flag emojis
2024-08-03 23:23:18 +00:00
kzndotsh
9f00790354 refactor(event.py): use bot.get_channel instead of guild.get_channel for better reliability
feat(event.py): add logging for channel details for better debugging
fix(event.py): change channel type check to use isinstance for more accurate type checking
style(event.py): remove unnecessary message existence check for cleaner code
2024-08-03 23:08:33 +00:00
kzndotsh
de69dbaf2c fix(event.py): update channel type check to include news channels to allow event handling in news channels as well 2024-08-03 22:17:31 +00:00
kzndotsh
ccd36e2dc2 feat(event.py): add condition to only process events from specific channel id to limit scope of event handling 2024-08-03 22:13:55 +00:00
kzndotsh
83701ca570 fix(event.py): make flag check case-insensitive in emoji name to handle different casing scenarios 2024-08-03 22:10:42 +00:00
kzndotsh
110326a100 feat(event.py): add on_raw_reaction_add event handler to manage reactions
This new feature will remove reactions from messages if the reaction is a flag or a regional indicator symbol. This is done to prevent misuse of these reactions.
2024-08-03 22:08:30 +00:00
kzndotsh
88559952ff feat(schema.prisma): switch from development to production database by changing environment variables to improve data security and performance 2024-08-03 03:51:02 +00:00
kzndotsh
e43d8578ff feat(schema.prisma): uncomment development database URLs and comment production URLs for development testing
feat(pyproject.toml): add aiocache dependency for caching support
refactor(tux/cogs): change import style for checks from tux.utils
refactor(tux/cogs/admin/git.py): replace LinkButton with GithubButton for code reuse
refactor(tux/cogs/fun/xkcd.py): replace XkcdLinkButtons with XkcdButtons for code reuse
refactor(tux/cogs/guild/export.py): change import style for checks and exports from tux.utils
remove(tux/cogs/helpers.py): delete Helpers cog as it's no longer needed
refactor(tux/cogs/info/membercount.py): refactor member count command to return early if no guild is found

refactor(moderation): change import statement for checks module for better readability
feat(ban.py): add check_ban_conditions function to improve code reusability and maintainability
refactor(report.py): move ReportModal class to a separate file for better code organization

feat(snippets.py): add first and last page buttons to snippets list for better navigation
style(snippets.py): add line breaks for better code readability
fix(snippets.py): make error messages ephemeral and auto-delete after 30 seconds for cleaner chat
refactor(snippets.py): restructure snippet information embed for better readability and add bot latency
fix(client.py): disable query logging for better performance
refactor(guild_config.py): remove unused permission levels 8 and 9
fix(main.py): allow bot to mention roles for better user interaction
feat(buttons.py): add new buttons for XKCD and Github for better user experience
feat(report.py): add new report modal for anonymous reporting
refactor(constants.py): use config for TEMPVC constants instead of environment variables
style(embeds.py): simplify footer text in embeds for cleaner look
refactor(github.py): rename GitHubService to GithubService for consistency
2024-08-03 03:50:36 +00:00
kzndotsh
6f376249f2 feat(main.py): enhance bot initialization with additional parameters for better control and security
- Add 'strip_after_prefix' to remove any spaces after the command prefix for cleaner command parsing
- Add 'owner_id' to specify the bot owner for privileged commands
- Add 'allowed_mentions' to prevent the bot from mentioning everyone or roles, reducing potential for spam or abuse
2024-08-02 23:36:27 +00:00
renovate[bot]
e4d8c5edc2
fix(deps): update dependency ruff to v0.5.6 2024-08-02 18:32:10 +00:00
kzndotsh
157b610f3b docs(help.py): add detailed docstrings to methods for better code understanding
feat(help.py): add delete_after parameter to send_error_message method to auto delete error messages after 30 seconds
2024-08-02 15:34:34 +00:00
kzndotsh
9ad126079e
Merge pull request #367 from allthingslinux/renovate/mkdocs-material-9.x-lockfile 2024-08-02 10:56:49 -04:00
kzndotsh
3ab854b4d6
Merge pull request #366 from clonidine/docs/add-contributing 2024-08-02 10:56:39 -04:00
kzndotsh
6e4919568e
Merge pull request #364 from Atmois/main 2024-08-02 10:56:27 -04:00
kzndotsh
f2bbc51092 feat(error.py): add sentry_sdk.capture_exception to log errors in Sentry
refactor(error.py): change condition to check if error type is in error_map before logging error traceback, to avoid unnecessary logging
2024-08-02 14:52:15 +00:00
renovate[bot]
dfe5f07bdf
chore(deps): update dependency mkdocs-material to v9.5.31 2024-08-02 11:34:42 +00:00
clonidine
388e29f614
Update docs/CONTRIBUTING.md
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2024-08-02 06:51:18 -03:00
clonidine
0c1f66d1b1
Update docs/CONTRIBUTING.md
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2024-08-02 06:51:04 -03:00
clonidine
c7c2b4be65
docs: add CONTRIBUTING.md 2024-08-02 09:40:29 +00:00
Atmois
56dc6a79c1
Update formatting 2024-08-02 10:22:13 +01:00
Atmois
76ef2af15d
Merge branch 'allthingslinux:main' into main 2024-08-02 08:49:26 +01:00
kzndotsh
b5810c96fa refactor(slowmode.py): modify usage instruction for slowmode command to improve clarity 2024-08-02 00:12:36 +00:00
kzndotsh
8a1bf5d820 refactor(slowmode.py): change delay parameter type from int | str to str for consistency
feat(slowmode.py): add validation for delay input to ensure it's a valid integer
fix(slowmode.py): handle ValueError when delay input is not a valid integer
feat(slowmode.py): add feedback message when delay input is not within the valid range (0-21600)
2024-08-02 00:07:05 +00:00
kzndotsh
ee1b234571 feat(cases.py): add *args to Cases and CaseModifyFlags methods to allow for additional arguments
refactor(slowmode.py): change delay parameter type from int to int | str to handle string inputs
feat(slowmode.py): add check for string delay and convert to int for more flexible delay input
2024-08-01 23:49:50 +00:00
kzndotsh
4c4cdd9030 feat(Dockerfile, docker-compose.yml): add 'poetry run prisma py fetch' to CMD and command for fetching latest Prisma schema before generating Prisma client and running the app 2024-08-01 23:43:48 +00:00
kzndotsh
9ab04c0e1b feat(jail.py, unjail.py): add support for atomic=False in role removal and addition to handle partial success in role operations
refactor(jail.py, unjail.py): add * in function parameters for better readability and to enforce keyword-only arguments
2024-08-01 23:34:51 +00:00
kzndotsh
5b0413100b docs(README.md): enhance readability of development notes using blockquote
feat(README.md): add Metrics section with Repobeats analytics image for project statistics tracking
2024-08-01 23:31:47 +00:00
Atmois
86fe8570a5
Merge branch 'main' into main 2024-08-02 00:31:00 +01:00
kzndotsh
e5a18ca717 docs(README.md): add Repobeats analytics image to provide visual representation of repository metrics 2024-08-01 23:27:25 +00:00
kzndotsh
a9611e5e35
Merge pull request #362 from CapnRyna/regex-patch-1 2024-08-01 19:12:56 -04:00
kzndotsh
6e852e7fd8
Merge pull request #349 from allthingslinux/renovate/sentry-sdk-2.x-lockfile 2024-08-01 19:04:45 -04:00
kzndotsh
e76590e914
Merge pull request #347 from allthingslinux/renovate/githubkit-0.x-lockfile 2024-08-01 19:04:38 -04:00