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
c7eec38dc5 feat(converters.py): add CaseTypeConverter class to handle conversion of case types in discord commands 2024-08-24 09:26:55 +00:00
kzndotsh
c516457507 feat(main.py): add case_insensitive=True to Tux bot initialization to allow case-insensitive command inputs 2024-08-24 09:26:44 +00:00
TargzBalls
922319c101
Update snippets.py 2024-08-24 03:25:51 -05:00
TargzBalls
2414de8708
Update snippets.py 2024-08-24 03:20:11 -05:00
TargzBalls
7f9a00c203
Merge branch 'allthingslinux:main' into main 2024-08-24 03:19:56 -05:00
kzndotsh
67bbf33af4 fix(help.py): correct flag example in help message from '--reason' to '-reason' for better command understanding 2024-08-24 06:07:51 +00:00
kzndotsh
809e15f41f
Merge pull request #422 from AuraPy/timezones 2024-08-24 01:39:16 -04:00
kzndotsh
bcf4ef1551 refactor(timezones.py): replace json file with hardcoded timezones for better performance
feat(timezones.py): add support for reactionmenu to improve user interaction
style(timezones.py): improve code readability by removing unnecessary comments and adding more descriptive variable names
2024-08-24 05:37:32 +00:00
kzndotsh
94abe651d2 refactor: Remove unused timezones.json file 2024-08-24 01:37:20 -04:00
kzndotsh
66ec2bbb71 feat(pyproject.toml): add pytz library to manage timezone related operations 2024-08-24 05:37:00 +00:00
kzndotsh
e1fcbc3e46
Merge branch 'main' into timezones 2024-08-24 00:10:13 -04:00
kzndotsh
1035a69494 docs(snippetban.py, snippetunban.py): add docstrings to is_snippetbanned method to provide clear explanation of its functionality and parameters 2024-08-23 16:44:49 +00:00
kzndotsh
51f2fc6186 style(snippetban.py): add newline for better code readability
style(snippetban.py): change "Snippet Banned" to "Snippet banned" for consistency in message case
refactor(snippetban.py): simplify ban_count and unban_count calculation for better performance

docs(snippetunban.py): add docstring to SnippetUnban class for better code documentation
style(snippetunban.py): change "Snippet Unbanned" to "Snippet unbanned" for consistency in message case
refactor(snippetunban.py): simplify ban_count and unban_count calculation for better performance
feat(snippetunban.py): add setup function to add SnippetUnban cog to bot for enhanced functionality
2024-08-23 16:42:59 +00:00
kzndotsh
fdd23604a2
Merge pull request #443 from allthingslinux/snippetban 2024-08-23 12:23:01 -04:00
renovate[bot]
4416c9fea8
chore(deps): update dependency mkdocs-material to v9.5.33 2024-08-23 14:46:01 +00:00
kzndotsh
985e2db177 fix(event.py): remove allowed_mentions parameter from channel.send method to allow mentions in the message 2024-08-23 09:49:31 +00:00
kzndotsh
103374deba chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.6.1 to v0.6.2 for latest features and bug fixes 2024-08-23 07:14:38 +00:00
kzndotsh
df7a930a77
Merge pull request #445 from allthingslinux/renovate/ruff-0.x-lockfile 2024-08-23 03:13:33 -04:00
kzndotsh
bc0bfaeeac
Merge pull request #447 from allthingslinux/slowmodepatch 2024-08-23 03:12:34 -04:00
kzndotsh
51c7d8c094 refactor(info.py): replace app_commands with commands for better compatibility
feat(info.py): add aliases and usage instructions to commands for better user experience
fix(info.py): replace interaction with ctx in command parameters for consistency with other commands
style(info.py): improve formatting and readability of the code
2024-08-23 07:11:09 +00:00
kzndotsh
62d39b4459
Merge pull request #444 from allthingslinux/infocmd 2024-08-23 01:48:00 -04:00
TargzBalls
9948c76e72
Merge branch 'allthingslinux:main' into main 2024-08-22 16:38:29 -05:00
electron271
b54697da3e
fix(eval.py) make eval.py use owner_ids (including sysadmin) 2024-08-22 15:22:06 -05:00
electron271
9efbd07c2b
fix(main.py) change jishaku to use sysadmin and bot owner ids 2024-08-22 15:14:36 -05:00
Atmois
630130bb64
Fix description for slowmode slash command 2024-08-22 17:37:36 +01:00
Atmois
dc81d10d38
grammer fixes 2024-08-22 17:28:33 +01:00
Atmois
8c779f8ccd
Add fun fact command 2024-08-22 17:25:49 +01:00
renovate[bot]
e12f195f3d
fix(deps): update dependency ruff to v0.6.2 2024-08-22 16:17:09 +00:00
AuraPy
bbdddf0c98
Merge branch 'main' into timezones 2024-08-22 16:07:35 +01:00
Atmois
f268d0e173
Add emote info subcommand 2024-08-22 15:15:44 +01:00
Atmois
c8fc0628f1
Add role info subcommand 2024-08-22 15:08:45 +01:00
Atmois
b3acb6d6b0
Add snippet unban 2024-08-22 13:11:39 +01:00
Atmois
61ce0b3c7d
Add checks to ensure that user is not snippet banned or unbanned before executing the command 2024-08-22 13:11:21 +01:00
Atmois
b737ea644e
Merge remote-tracking branch 'origin/main' into snippetban 2024-08-22 12:30:54 +01:00
kzndotsh
f07de586f4 fix(github.py): cast GITHUB_INSTALLATION_ID to int to ensure compatibility with AppInstallationAuthStrategy constructor 2024-08-22 09:06:42 +00:00
TargzBalls
bed42cf0fe
Merge branch 'allthingslinux:main' into main 2024-08-22 00:15:34 -05:00
kzndotsh
1a1a310b28 feat(pyproject.toml, bot.py): add jishaku library for debugging and load it as an extension in bot.py to enhance debugging capabilities 2024-08-22 03:57:14 +00:00
kzndotsh
a107228fff docs(README.md): update warning message to provide more accurate information and add support server link 2024-08-22 03:30:46 +00:00
kzndotsh
54b46bc578 docs(README.md): add HTTPX to list of features to reflect recent addition of HTTPX for request handling 2024-08-22 03:09:09 +00:00
kzndotsh
20e06f1e2b refactor(checks.py): change logger level from error to info for unauthorized command attempts to better reflect the severity of the event 2024-08-22 03:01:57 +00:00
kzndotsh
a8ce2999ab refactor(event.py): simplify conditional statements for better readability
feat(event.py): add walrus operator (:=) to assign and check tags in a single line
chore(event.py): add TODO comments for future database configuration tasks
style(event.py): improve code formatting for better readability
2024-08-22 02:57:50 +00:00
kzndotsh
424310dda7 fix(constants.py): change default values for DEBUG, GITHUB_APP_ID, and GITHUB_INSTALLATION_ID to string to avoid type mismatch errors
refactor(constants.py): change GITHUB_INSTALLATION_ID type from int to str for consistency with other GitHub related constants
2024-08-22 02:57:33 +00:00
kzndotsh
817756c894 refactor(checks.py): split large function into smaller ones for better readability and maintainability
fix(checks.py): improve error handling by adding try-except blocks around database operations
docs(checks.py): update function docstrings to better reflect their purpose and parameters
style(checks.py): improve code readability by removing unnecessary comments and improving variable names

refactor(checks.py): simplify function comments and error handling for better readability
fix(checks.py): change role_ids type from list[int] to list[Any] to handle non-integer role_ids
style(checks.py): remove unnecessary comments and white spaces for cleaner code
2024-08-22 02:57:15 +00:00
kzndotsh
76593ac7b5 refactor(error.py, exceptions.py): move custom exceptions to a separate file for better code organization
fix(error.py): update error_map to import exceptions from new location to maintain functionality
2024-08-22 02:56:54 +00:00
kzndotsh
c2cca276bd refactor(cases.py): simplify target conversion by using UserConverter only
fix(cases.py): use ctx.author for moderator assignment to avoid unnecessary conversion
feat(cases.py): add check for moderator type to ensure it's a discord.Member, convert if not
2024-08-22 02:56:33 +00:00
kzndotsh
ea1df7797c chore(pyproject.toml): update dependencies and linting rules
- feat(pyproject.toml): add pyyaml to main dependencies for YAML file handling
- fix(pyproject.toml): move pyyaml from wrong section to main dependencies
- refactor(pyproject.toml): add new linting rules "PLR0913", "PLR2004" to ignore list for better code quality
- feat(pyproject.toml): add "FURB" and "PL" to select list for enhanced linting checks
2024-08-22 02:55:57 +00:00
kzndotsh
20680eb502 chore: move docs/resources to assets/branding 2024-08-21 21:55:44 -04:00
kzndotsh
1b3fe5024d feat: add SECURITY.md to provide guidelines for reporting vulnerabilities and clarify support versions 2024-08-22 01:52:18 +00:00
kzndotsh
66fc66247c docs(README.md, development.md): update file references from .json to .yml to reflect changes in configuration file format
fix(development.md): correct .env.example to .env to accurately represent the environment file name
2024-08-22 01:45:57 +00:00
kzndotsh
c3bb4443df feat: add example settings.yml file to provide a template for configuration settings 2024-08-22 01:44:37 +00:00