Skip to content

Mod 0.10.1 · Bot 0.15.0

Choose a tag to compare

@joaopmsilva joaopmsilva released this 12 Nov 15:37
· 26 commits to main since this release

Discord bot 0.15.0 (mod 0.10.1, unchanged): the bot now updates itself, so this is the last update you need to install by hand.

⬆️ Updates from Discord

  • You'll get a DM when a new release is out. Every 6 hours the bot checks this repository's latest release against its own version and your running mod's. When either is behind, every admin in ADMIN_USER_IDS gets a DM with what changed and two buttons: Update now and Skip this version.
  • /admin update shows the same card whenever you want to check.
  • Update now:
    • Bot: downloads the release, checks the new code before swapping it in, keeps the current version in data/previous-bot/, installs packages if they changed, and restarts. Your .env and data/ are kept.
    • Mod: built from source when the server has make and g++ (as deploy/update-mod.sh does), otherwise the ready-made librsdwapi.so from the release is downloaded. It's swapped in safely and loads at the next server start; /server restart loads it now.
    • The game server is never restarted by an update.
  • Prefer it hands-off? Set BOT_UPDATE_AUTO=true and new releases install on their own, with a DM afterwards saying what was done.

New settings, all optional: BOT_UPDATE_CHECK, BOT_UPDATE_HOURS, BOT_UPDATE_AUTO, BOT_UPDATE_REPO, MOD_FILE (see CONFIG.md).

Note

The bot has to run under systemd (as in deploy/rsdw-bot.service) so it comes back up after updating itself. A bot running from a git checkout won't replace its own files; git pull instead.

Install this one

  • Bot: run deploy/upload.ps1 -Bot. From here on, updates come to you on Discord.
  • Mod: unchanged since 0.10.1; librsdwapi.so is attached again for convenience.