Commit Graph

29 Commits

Author SHA1 Message Date
pacnpal
97dd6d72f2 loads of import fixes 2024-11-17 19:47:18 +00:00
pacnpal
121e1395f4 Updated default_guild_settings in core/base.py from 25MB to 8MB
Verified consistency with config_manager.py which already had 8MB as default
Confirmed proper validation in config_manager.py (allows 1-100MB range)
Verified all other files reference the max_file_size setting correctly
2024-11-15 20:11:43 +00:00
pacnpal
245710e4d4 Added explicit import of CommandAlreadyRegistered exception
Wrapped the command registration in a try-except block
Silently continues if the command is already registered
Maintains all other functionality including cog loading and task initialization
2024-11-15 14:32:33 +00:00
pacnpal
172fe83288 Added a command existence check using discord.utils.get()
Only register the command if it's not already present
Maintained all other functionality including cog loading and task initialization
2024-11-15 14:30:50 +00:00
pacnpal
c46e967378 Appears in the context menu when right-clicking a user
Checks for proper permissions
Removes the birthday role if present
Cancels any scheduled role removal tasks
Provides appropriate feedback and error handling
Logs all actions for debugging purposes
2024-11-15 14:19:30 +00:00
pacnpal
0194142c56 New Command:
Added /removebirthday command to manually remove birthday roles from users
Includes permission checks and proper error handling
Cleans up any scheduled tasks for the user
Enhanced Error Handling:

Added comprehensive try/except blocks throughout the cog
Added detailed logging for all operations and errors
Better handling of Discord API errors
Improved error messages for users
Improved Role Removal:

Added hourly cleanup task to ensure role removals are processed
Better handling of timezone issues
Proper cleanup of tasks when cog is unloaded
Improved task management to prevent memory leaks
Better Logging:

Added detailed logging for all operations
Logs include guild IDs, member IDs, and error details
Helps track issues and debug problems
2024-11-15 13:40:28 +00:00
pacnpal
a16b1ea7a4 fix: Change URL extraction in processor to use regex
- Replaced extractor.suitable() with direct regex pattern matching
- Added check for _VALID_URL attribute
- Improved error handling in URL extraction
- Maintains compatibility with video_downloader.py changes
2024-11-15 02:13:37 +00:00
pacnpal
8822c85b6f Add context menu command for birthday role assignment. Users with allowed roles can now give birthday roles via right-click menu. 2024-11-15 01:36:19 +00:00
pacnpal
dccd16e776 Update READMEs 2024-11-15 01:28:06 +00:00
pacnpal
9be8842b36 Add context menu command for birthday role assignment. Users with allowed roles can now give birthday roles via right-click menu. 2024-11-15 01:22:10 +00:00
pacnpal
e133fc6366 refactor: Convert all cogs to use hybrid commands - Update birthday cog to use hybrid commands - Update overseerr cog to use hybrid commands - Update videoarchiver to use hybrid command group 2024-11-15 01:19:03 +00:00
pacnpal
f5a76bbd11 refactor: Break out commands in all cogs - Convert birthday cog to use separate slash commands - Convert overseerr cog to use separate slash commands - Update interaction handling 2024-11-15 01:15:58 +00:00
pacnpal
8013be2a66 fix: Add error handling to all cogs' initialization - Add proper logging - Add teardown functions - Add cleanup on failure 2024-11-15 01:04:53 +00:00
pacnpal
533afd61ed fix: Simplify cog initialization - Let Red handle command syncing - Remove manual sync operations - Clean up __init__.py files 2024-11-15 00:59:00 +00:00
pacnpal
3b563c45b5 fix: Add proper command registration and cleanup to all cogs - Add command syncing after cog load - Add teardown functions - Add error handling for sync operations 2024-11-15 00:58:05 +00:00
pacnpal
a760bef25d feat: Implement proper slash commands across all cogs - Use app_commands for better slash command support - Add command and parameter descriptions - Improve interaction handling - Add select menus for better UX 2024-11-15 00:47:39 +00:00
pacnpal
2622db6d3c Add slash command support for all cogs 2024-11-14 21:43:01 +00:00
pacnpal
63191bc170 fixed uuid 2024-09-29 00:32:20 -04:00
pacnpal
a5d8b384dd generated uuid for identifier 2024-09-29 00:28:28 -04:00
pacnpal
d6911c9682 updated birthday.py 2024-09-29 00:26:08 -04:00
pacnpal
c319fdeab9 yeah I changed some stuff 2024-09-29 00:18:10 -04:00
cac2bbab2f birthday fixes 2024-09-28 21:31:22 -04:00
de9e184668 Updated with new features 2024-09-28 21:21:29 -04:00
8aa0f9b402 Update __init__.py 2024-09-28 17:35:03 -04:00
942838a107 Update birthday.py 2024-09-28 17:31:55 -04:00
050e8d4c3c Update __init__.py 2024-09-28 17:28:38 -04:00
397305fcdc Fix 2024-09-28 17:22:31 -04:00
7d22a2c70c Info.json 2024-09-28 17:16:54 -04:00
058c9aaa7d change to birthday 2024-09-28 17:12:25 -04:00