Tasks, autoupdate, general config, robust profile system#8
Conversation
- Fetches every 12h (only once via general config caching the last check)
RSBot.AutoUpdate{True}
RSBot.Language{en_US}
RSBot.showExitDialog{True}
RSBot.Theme.Auto{True}
RSBot.LastUpdateCheck{638506116000000000}
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThis PR modernizes the configuration system by introducing GeneralConfig for centralized settings management, enhances ProfileManager to prevent reserved profile names and guarantee a Default profile, updates multiple UI components to use the new config system, refactors the Updater from Windows Forms to SDUI with GitHub-based version checking, and adds developer tooling (VSCode tasks and a mock updater server). ChangesConfiguration System Modernization & Updater Refactoring
Sequence DiagramsequenceDiagram
actor User
participant App as Application
participant Config as GeneralConfig
participant PM as ProfileManager
participant Updater as Updater Service
participant GitHub as GitHub Releases
User->>App: Launch RSBot
App->>Config: Load()
Config->>Config: Initialize from Settings.rs
App->>PM: Initialize profiles
PM->>PM: Ensure Default profile exists
App->>Updater: Check for updates
Updater->>Config: Get RSBot.AutoUpdate
alt AutoUpdate enabled
Updater->>Config: Get last check timestamp
alt 12+ hours since last check
Updater->>GitHub: Fetch latest release
GitHub-->>Updater: Release info
Updater->>Updater: Parse version & build info
Updater->>Config: Store check timestamp
Updater-->>App: Update available
App->>Updater: ShowDialog()
User->>Updater: Click Download
Updater->>Updater: Download RSBot-Setup-Latest.exe
Updater->>App: Launch installer & exit
else Recent check
Updater-->>App: Skip check (rate limited)
end
else AutoUpdate disabled
Updater-->>App: Skip check
end
App->>Config: Get RSBot.Theme.Auto
App->>User: Render UI with theme
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
9453d3c
into
Silkroad-Developer-Community:main
* Rebrand to OasisBot - Requires changes to #8 - Icons made by @kis1yi - Theme accent changed to (202, 179, 139) #CAB38B | (182, 159, 119) #B69F77 - Text references changed to OasisBot - Changes links to OasisBot (https://github.com/Silkroad-Developer-Community/RSBot -> https://github.com/Silkroad-Developer-Community/OasisBot) - Internals untouched * Update SDUI reference and finalize OasisBot rebranding * DMCA * Revert copyright notice for Python - Never merged - All contributions from current org members -> @Day4Date, @kis1yi, @Egezenn - myildirimofficial/RSBot#965 * Decoupling UI and Logic (#1) * Added IBotbaseView and IPluginView Interfaces Changed IBotbase and IPlugin Interface Decoupled Chat Plugin * General Plugin decoupled Subviews still have to be decoupled * Added Inventory Plugin to new Interface * Decoupled Training Botbase Removed Pickepet Timer from UI and created new one in TrainingManager.cs * Added new Interface to all existing Plugins and Botbases * Test * Decoupled Skills Plugin Added headless prototyp * --headless starts now without Main UI Improved decoupling for Party Plugin * removed launchSettings * test * removed "h" keyword for headless launch * Fix for General Plugin * Decoupled ServerInfo Plugin * invoked skills plugin * Reworked Party decoupling * Some spelling * Stabilize behavior * Command registries for plugins, headless attach * Lower, start-client, exit commands * Fixes and improvements - Stable console cursor - Fixes to some errors - Help messages outputted only to console --------- Co-authored-by: DayDate <DayDate> Co-authored-by: Egezenn <egezenn@tutanota.com> * Tasks, autoupdate, general config, robust profile system (#8) - Fetches every 12h (only once via general config caching the last check) RSBot.AutoUpdate{True} RSBot.Language{en_US} RSBot.showExitDialog{True} RSBot.Theme.Auto{True} RSBot.LastUpdateCheck{638506116000000000} * Move Application/RSBot -> Application/OasisBot, Move URL dependencies - Break stuff once
RSBot.AutoUpdate{True}
RSBot.Language{en_US}
RSBot.showExitDialog{True}
RSBot.Theme.Auto{True}
RSBot.LastUpdateCheck{638506116000000000}
Summary by CodeRabbit
Release Notes
New Features
Improvements