#!/bin/sh
# login banner: the bot's state and, while unpaired, how to find the pairing code
if systemctl is-active --quiet absolute-raid-bot; then S="running"; else S="NOT running (sudo arb-setup)"; fi
if [ -e /opt/absolute-raid-bot/data/pairing-code.txt ]; then P="NOT PAIRED - sudo arb-status shows the pairing code"; else P="paired"; fi
printf '\n  Absolute Raid Bot: %s, %s\n  sudo arb-setup | sudo arb-status | sudo arb-reset-2fa <id> | sudo arb-pair-reset\n\n' "$S" "$P"
