# barbenoire Telegram bot on top of the homelab's **CrowdSec** Local API. CrowdSec itself still sends the ban notifications (same bot token, `http` plugin); this bot only adds commands. | Command | Reply | |---|---| | `/bans` | Active bans from the local CrowdSec (community blocklist not counted) | | `/ip
` | Banned right now? Country, AS, alert history, CTI/Shodan links | | `/unban ` | Lift a ban, after a ✅/❌ confirmation | | `/stats` | Alerts over 24 h and 7 days, by scenario and country | Optional: a heartbeat to a Kuma Push monitor (`KUMA_PUSH_URL`). It only answers the chat IDs in `ALLOWED_CHAT_IDS`. ## CrowdSec credentials (on the CrowdSec host, LXC 101) ```bash cscli bouncers add barbenoire # -> CROWDSEC_BOUNCER_KEY (read current decisions) cscli machines add barbenoire --password '