Skip to content

Enhance rank guessing features - #44

Merged
ZayrexDev merged 54 commits into
masterfrom
dev
Sep 4, 2026
Merged

ZayrexDev merged 54 commits into
masterfrom
dev

Conversation

@ZayrexDev

Copy link
Copy Markdown
Member

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:

  • Added new API helper methods: getRandomScoreWeight, getRandomScoreFromUsers, and getUserRank in APIHelper.java to support advanced random score and user ranking features. [1] [2]
  • Changed leaderboard-related API requests to use the targets field instead of uids for consistency with backend expectations.

Error Handling Improvements:

  • Expanded the ErrorCode enum with new error codes: RENDERER_UNAVAILABLE and PERFORMANCE_PLUS_UNAVAILABLE.
  • Improved default error messages in ApiRequestException.java to provide more descriptive feedback for new error codes.
  • Enhanced ReplayRenderException to parse and display more user-friendly error messages based on known error patterns.

Bot and Messaging Refactor:

  • Refactored MessageSender and QQApi to return a SentMessage object instead of a boolean, providing more detailed feedback on message sending results. [1] [2] [3]
  • Improved import organization and removed unused imports across several files for clarity and maintainability. [1] [2] [3]

Core Infrastructure and Project Structure:

  • Moved SeiraApplication from the runtime package to the root package, updated references accordingly, and switched initialization from UserDataStore to SqliteDatabase. [1] [2]
  • Updated the project version in pom.xml from 1.11.0 to 1.11.6.

Documentation Updates:

  • Updated the README.md to document the new /rg stats and /rg stats all commands, 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.

@ZayrexDev
ZayrexDev merged commit cb2538b into master Sep 4, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant