feat: Simplify update process by removing deprecated methods and enhancing README; improve type safety in tests

This commit is contained in:
2025-11-09 22:23:46 +01:00
parent e03761adfc
commit 967801515f
7 changed files with 35 additions and 62 deletions

View File

@@ -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).