mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 17:06:15 +00:00
feat: Simplify update process by removing deprecated methods and enhancing README; improve type safety in tests
This commit is contained in:
@@ -33,21 +33,15 @@ npm start
|
||||
**Automatic update script** that keeps your bot up-to-date with the latest version.
|
||||
|
||||
**Features:**
|
||||
- Two update methods: Git-based or GitHub API (no Git needed)
|
||||
- Uses GitHub API (downloads ZIP - no Git required)
|
||||
- Preserves your configuration and accounts
|
||||
- No merge conflicts with GitHub API method
|
||||
- No merge conflicts, always clean
|
||||
- Automatic dependency installation and rebuild
|
||||
|
||||
**Usage:**
|
||||
```bash
|
||||
# Auto-detect method from config.jsonc
|
||||
# Run update manually
|
||||
node setup/update/update.mjs
|
||||
|
||||
# Force GitHub API method (recommended)
|
||||
node setup/update/update.mjs --no-git
|
||||
|
||||
# Force Git method
|
||||
node setup/update/update.mjs --git
|
||||
```
|
||||
|
||||
**Automatic updates:** The bot checks for updates on startup (controlled by `update.enabled` in config.jsonc).
|
||||
|
||||
Reference in New Issue
Block a user