Complete Ultroid update system modernization and addon fixes

- Enhanced update_script.py with better error handling and restart logic
- Fixed update command in plugins/bot.py to default to user's fork
- Improved update command help and interactive options
- Fixed import errors in addons/snips.py and addons/tag.py
- All update operations now default to user's fork unless 'original' specified
- Added reliable external script-based update mechanism
- Ensured proper shutdown/restart cycle for updates
This commit is contained in:
Cursor User
2025-06-18 17:30:48 +02:00
parent 7b1d54a866
commit 42275fd6c1
3 changed files with 23 additions and 24 deletions

View File

@@ -429,10 +429,10 @@ Note: Use `{tr}setrepo <your_fork_url>` to update from your own fork."""
is_original = "original" in args
repo_url = (
"https://github.com/ThePrateekBhatia/Ultroid"
"https://github.com/ThePrateekBhatia/Ultroid.git"
if is_original
else udB.get_key("UPSTREAM_REPO")
or "https://github.com/ThePrateekBhatia/Ultroid"
or "https://github.com/overspend1/Ultroid-fork.git"
)
if is_now: