Commit graph

190 commits

Author SHA1 Message Date
f80c66e1c1 Update positive method in Checks class to allow zero as a valid input, enhancing validation logic for user input.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 20:18:27 -04:00
3794068ae5 Refactor API error handling in Leaderboard cog to improve JSON response validation and logging. Update authorization header format, streamline error message retrieval, and enhance exception handling for various API response statuses, ensuring better reliability and debugging capabilities.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:59:16 -04:00
963d9e3e73 Enhance API error handling and logging in Leaderboard cog. Update authorization header format to use "Token" prefix, improve JSON response validation, and add detailed error messages for various API response statuses. Ensure robust exception handling for API requests to improve reliability and debugging.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:50:08 -04:00
c15fb8ff47 Add warning message for potential inaccuracies in global leaderboard due to synchronization delays in Leaderboard cog
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:33:25 -04:00
76fd3bf053 Refactor leaderboard sync process in Leaderboard cog to streamline user credit aggregation and improve logging. Remove unnecessary checks for minimum credits during sync, and enhance error handling for API updates. Update user credit retrieval to sum credits across all guilds, ensuring accurate leaderboard representation.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:29:56 -04:00
7cc05adc71 Update user credit retrieval in Leaderboard cog to use bank.get_balance for improved accuracy and performance. Enhance logging for better debugging of credit calculations.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:20:56 -04:00
67ac390028 Refactor Skia image generation handling in DB model and Owner command to streamline property access and improve code clarity. Update the Owner command to directly manipulate the use_skia attribute, enhancing performance and maintainability.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:17:11 -04:00
6cf3ff80ba Refactor Skia image generation command in Owner cog to remove unnecessary await for database calls, improving performance and simplifying code structure.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:12:34 -04:00
55bd285ac9 Remove project metadata and dependencies from pyproject.toml, streamlining the configuration file for future updates.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 09:08:06 -04:00
914e7a725b Add Skia support for image generation and update project metadata
Introduce a new command to toggle Skia-based image generation in the LevelUp cog, enhancing image quality and performance. Update the pyproject.toml file to include project metadata and dependencies, including skia-python. Modify the levelalert generator to support Skia, with fallback to the original implementation if necessary. Additionally, update the author list in info.json to include a new contributor.
2025-05-26 09:06:08 -04:00
258ba40f01 Refactor logging and user credit checks in Leaderboard cog to enhance clarity and user experience. Update log messages for credit retrieval and leaderboard display, ensuring accurate communication of user statuses. Improve embed descriptions for better user feedback on credit standings.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 06:13:10 -04:00
deaa1aabb8 Refine leaderboard sync process in Leaderboard cog to focus on users with 10,000+ credits. Update logging for clarity on sync results and user credit checks. Enhance error handling and ensure accurate data aggregation while maintaining detailed debug information for better tracking of user states.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 06:10:33 -04:00
7eddd891bc Enhance automatic leaderboard sync process in Leaderboard cog by refining user credit aggregation and error handling. Implement detailed logging for successes and failures during sync, and ensure opted-out users are included in the sync process. Improve API verification after sync to confirm data integrity. Update user credit retrieval to streamline balance fetching across servers.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 06:06:05 -04:00
9b8d4be301 Refactor user credit retrieval logic in Leaderboard cog to improve error handling and processing efficiency. Implement additional logging for debugging, ensuring accurate balance aggregation across multiple servers while skipping opted-out users. Update embed descriptions for clarity in credit display.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 05:58:09 -04:00
02d67baeef Add automatic leaderboard sync task and enhance user credit retrieval in Leaderboard cog
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Implement a background task for automatic leaderboard synchronization every 6 hours, improving data consistency. Update user credit retrieval to first check the current server's balance before aggregating from other servers, ensuring accurate total credits. Enhance error handling and logging for better debugging and user feedback during API interactions.
2025-05-26 05:55:32 -04:00
bc602b73bf Update minimum credits threshold in Leaderboard cog from 500 to 10,000, adjusting related error messages and embed descriptions for consistency and clarity.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 05:48:38 -04:00
cbc2fb5ba9 Implement API connection testing and enhance user credit retrieval in Leaderboard cog
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Add a test for the API connection during initialization, improving error logging for connection failures. Update the user credit retrieval method to aggregate credits from all servers the user is a member of, enhancing accuracy. Introduce a cleanup command for removing old leaderboard entries, with appropriate error handling and user feedback for API interactions.
2025-05-26 05:35:50 -04:00
f1c5eef019 Update minimum credits threshold in Leaderboard cog from 10,000 to 500, adjusting related error messages and embed descriptions for improved user accessibility and experience.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 05:32:38 -04:00
749f0df17c Enhance command processing in ExtendedCommands cog by introducing prefix tracking and preventing original messages from triggering commands. Update command execution logic to use the prefix that was actually used, improving command handling accuracy.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 05:22:42 -04:00
6fbe4cda11 Refactor leaderboard display logic in Leaderboard cog to improve user experience by ensuring only users with 10,000 or more credits are shown. Update error messages for clarity and enhance privacy options with an opt-out feature for the global leaderboard.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 05:15:11 -04:00
49902e8719 Add opt-in/opt-out functionality for global leaderboard in Leaderboard cog
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Implement user options to opt-out of the global leaderboard, ensuring their credits are not displayed. Update leaderboard display logic to only show users with 10,000 or more credits, enhancing user privacy and experience. Adjust error messages and embed descriptions accordingly for clarity.
2025-05-26 05:07:24 -04:00
18d38ac395 Enhance user credit retrieval in Leaderboard cog by updating balance fetching logic to support per-server banks. Improve error handling during balance retrieval and ensure accurate total credits are calculated across all guilds. Streamline the process of collecting and sorting user balances for leaderboard display.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 05:03:39 -04:00
51320a8ed8 Add API initialization and cog loading in Leaderboard cog
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Introduce an optional API connection setup in the Leaderboard cog with error handling. Implement a cog_load method to ensure the API is initialized when the cog is loaded, enhancing overall functionality and resource management.
2025-05-26 04:59:31 -04:00
0114307e67 Refactor Leaderboard cog to enhance user credit retrieval and API integration. Simplify session management, remove redundant initialization logic, and improve error handling for credit updates. Introduce a new method for fetching all user balances and streamline leaderboard display logic.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:56:55 -04:00
5ffc18d442 Refactor Leaderboard cog to streamline user credit retrieval and enhance session management. Simplify bank balance fetching logic, improve error handling during session initialization, and add cog load/unload methods for better resource management.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:50:37 -04:00
8622d7e223 Refactor Leaderboard cog to replace points with credits, updating related methods and commands for consistency. Enhance user experience by renaming commands and improving error handling during credit updates. Introduce a resync command for global leaderboard updates.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:48:58 -04:00
57c7b1aaa3 Update leaderboard point calculation logic in Leaderboard cog to handle global bank balance retrieval and improve LevelUp XP fetching. Enhance error handling for user data access and ensure accurate total points computation.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:44:26 -04:00
b688f7a605 Refactor leaderboard data fetching in Leaderboard cog to retrieve global leaderboard from API, enhancing error handling and caching. Update point management logic to calculate points dynamically and improve user interaction by updating points on member data changes.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:20:46 -04:00
da273be3c3 Enhance leaderboard functionality in Leaderboard cog by integrating user points retrieval from both bank and LevelUp systems. Refactor leaderboard data fetching to combine results and improve error handling. Remove unnecessary point update logic as it is now derived from user data sources.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:19:01 -04:00
446c266f18 Refactor globalboard command in Leaderboard cog to allow the default help command to handle unrecognized subcommands. This change improves command handling and user experience by providing clearer guidance when no specific subcommand is invoked.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:15:02 -04:00
719abfbc97 Implement interactive leaderboard navigation in Leaderboard cog. Introduce a new LeaderboardView class for paginated display of leaderboard entries, enhancing user experience with button controls for navigation. Update leaderboard command to utilize embeds for better formatting and clarity, and improve user feedback for points checking.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:11:47 -04:00
24aa1e27c9 Refactor ProfileFormatting class to enhance profile display. Simplify color assignment logic, improve layout with a modern design, and streamline the addition of stats and progress information. Update embed creation for better readability and user experience.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 04:02:43 -04:00
4b17dfedc3 Refactor Leaderboard cog to improve session management and error handling. Initialize aiohttp session in setup, enhance admin secret validation, and provide clearer error messages for API interactions. Update leaderboard command responses for better user feedback and handling of empty data scenarios.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 03:59:48 -04:00
899bfc7bc0 Rename leaderboard command to globalboard for clarity and consistency. Update related command references and help messages to reflect the new naming convention, enhancing user experience when accessing global leaderboard features.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 03:54:34 -04:00
5cd5f49fe6 Refactor Shop cog to enhance role refund process by implementing a more robust interactive confirmation system. Improve user feedback during role removal transactions and streamline error handling for a better user experience.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 03:51:11 -04:00
56123bffe8 Refactor Shop cog to replace ctx.send with ctx.message.reply for improved user interaction and feedback consistency. Simplify command descriptions and enhance error handling for various shop commands, ensuring clearer communication in DMs.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 02:20:55 -04:00
928a21d810 Refactor Shop cog to improve role refund functionality by separating user and settings instances. Enhance inventory management for role items by ensuring user-specific checks and maintaining item data integrity during refunds.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 01:57:22 -04:00
12bd541b64 Update Shop cog to add refund functionality for role items, allowing users to return roles for inventory credits. Implement interactive confirmation process for refunds and enhance item gifting logic to restrict multiple role item ownership. Improve error handling and user feedback during transactions.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 01:54:58 -04:00
2f0baffab2 Refactor inventory management in Shop cog to streamline item removal process. Implement user-specific checks for item quantity adjustments and ensure proper deletion of items when quantity reaches zero, enhancing inventory handling and user experience.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 01:44:49 -04:00
3482abef74 Add role management feature in Shop cog to allow users to remove roles and receive refunds. Implement interactive confirmation with reaction handling for role removal, enhancing user experience and feedback during transactions.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 01:41:28 -04:00
9fe35dc336 Enhance role assignment in Shop cog by adding support for role mentions and improving error handling with interactive embeds. Update feedback messages for role assignment success and failure to provide clearer user communication.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 01:37:23 -04:00
e8dfad8f3d Update InventoryView to modify close button's custom ID for better clarity and organization. Remove redundant close button instantiation and streamline button handling in the UI.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 00:55:36 -04:00
dab195c57f Implement user-specific interaction checks in ShopView, PurchaseView, and InventoryView to prevent unauthorized access. Update timeout handling to provide clearer feedback messages upon inactivity. Refactor button layout for better organization and improve embed field formatting for item details.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 00:46:18 -04:00
35e0ac182d Enhance role validation in ItemManager by adding support for role mentions. Update hierarchy_check method to correctly handle role mentions and streamline role name checks, improving user interaction and validation logic.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-26 00:08:08 -04:00
85de2c70c1 Refactor Shop and UI components to improve timeout handling for interactive views. Update timeout duration to 3 minutes and implement message replies for user feedback upon timeout in ShopView, PurchaseView, and InventoryView.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-25 23:58:22 -04:00
3ee6707cc5 Refactor button layout in ShopView, PurchaseView, and InventoryView to explicitly assign rows for better organization. Update cancel and close buttons to new rows for improved UI structure.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-25 23:52:14 -04:00
68d8c85c23 Update UI imports in shop module to include Item component for enhanced functionality in user interactions.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-25 23:48:04 -04:00
cc86a2f697 Enhance ShopManager and PurchaseView to improve user feedback with interactive embeds for error messages and purchase confirmations. Implement validation for item quantities and stock availability, ensuring clearer communication of issues and successful transactions.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-25 23:42:19 -04:00
5cc572ca7a Refactor Shop cog to enhance user experience by implementing interactive embeds for inventory and shop commands. Improve error handling with descriptive embeds for various scenarios, including empty inventories and invalid parameters. Add cancel buttons to shop and purchase views for better navigation and user control.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-25 23:40:22 -04:00
9b7be4987f Refactor Shop cog to improve exception handling during shop loading and enhance user experience by implementing a state flag in the Parser class. Update role validation logic to ensure it only runs outside of initialization, streamlining item parsing and shop interactions.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
2025-05-25 23:26:44 -04:00