Skip to content

RootBot FrameworkBuild bots for Root on a normal user account. No paid bot slot.

rootbot serve, live dashboard
+- MUSIC DASHBOARD --------------+
| Status: PLAYING                |
| Never Gonna Give You Up        |
| > 1:24 ======-------- 3:35     |
+--------------------------------+
| Vol 100  Loop: off             |
| Autoplay: on                   |
+--------------------------------+
| Up next (3):                   |
| 1. Take On Me (3:45)           |
| 2. Africa (4:55)               |
+--------------------------------+

The bot's entire interface: a pinned dashboard message it edits in place, rendered as ASCII because a user account cannot send real embeds.

Why this exists

Root markets itself as a Discord alternative with free cosmetics, but its bot/app layer is paywalled. Installing an app or bot in a community costs a Core (a monthly subscription per community level), and even a bot you write yourself cannot be fully self-hosted: production installs run inside Root's cloud and consume a paid slot.

This framework takes the other route. A normal user account can join voice and send messages, so the framework drives one headlessly:

  1. Capture the account's session Bearer token once, from the real client's own traffic (Token Capture).
  2. Poll chat over the same grpc-web API the client uses, and answer ! commands.
  3. Join voice by asking the API for a session, it hands back a LiveKit URL and JWT, exactly like it does for the desktop client.
  4. Play audio by publishing an ffmpeg-fed mic track into the room.

The result is a bot that needs no Core, no app registration, and no client process, just a token, a small Python service, and a Lavalink sidecar.

Quickstart

# 1. Capture ROOT_TOKEN from the real client (Windows, one time)
#    -> see the Token Capture guide

# 2. Configure
cp .env.example .env            # set ROOT_TOKEN
cp config.example.json examples/musicbot/config.json

# 3. Set up Lavalink + the YouTube OAuth step (burner Google account)
#    -> see the Lavalink guide

# 4. Deploy to a Linux VPS (installs venv, systemd units, starts both)
bash deploy/deploy.sh root@your-vps

Then sit in any voice channel in a community the alt belongs to and type !play never gonna give you up in chat.

Full walkthrough: Getting Started.

Use a throwaway alt account only; Root's Terms of Use do not permit automated use of the Service (Section 2.5). See the Limits page. Unofficial project, not affiliated with Root Communications, Inc.