Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new features and improvements, mainly focused on enhancing the statistics and random score functionalities, improving error handling, and refactoring some core infrastructure. The most notable changes include new API helper methods for random score weights and user rank, expanded error codes and messages, improved bot message sending logic, and documentation updates reflecting the new features.
API Enhancements:
getRandomScoreWeight,getRandomScoreFromUsers, andgetUserRankinAPIHelper.javato support advanced random score and user ranking features. [1] [2]targetsfield instead ofuidsfor consistency with backend expectations.Error Handling Improvements:
ErrorCodeenum with new error codes:RENDERER_UNAVAILABLEandPERFORMANCE_PLUS_UNAVAILABLE.ApiRequestException.javato provide more descriptive feedback for new error codes.ReplayRenderExceptionto parse and display more user-friendly error messages based on known error patterns.Bot and Messaging Refactor:
MessageSenderandQQApito return aSentMessageobject instead of a boolean, providing more detailed feedback on message sending results. [1] [2] [3]Core Infrastructure and Project Structure:
SeiraApplicationfrom theruntimepackage to the root package, updated references accordingly, and switched initialization fromUserDataStoretoSqliteDatabase. [1] [2]pom.xmlfrom1.11.0to1.11.6.Documentation Updates:
README.mdto document the new/rg statsand/rg stats allcommands, including detailed explanations of the statistics tracked, and expanded the command table to reflect new usage options. [1] [2] [3]These changes collectively improve the feature set, robustness, and usability of the project, especially around game statistics and bot interaction.