HotBotπŸ”₯

The code isn't public yet. If you'd like her in your room, ask JordyπŸ”₯ on RVRB.

Running HotBot on your own channel

A complete setup, start to finish. Budget 30 minutes, most of it waiting on account signups.

One process serves one channel by default, and that is all this page sets up. It can serve several at once from one database if you run more than one room β€” see More than one channel β€” but leave that until the first one works.


Before you start

You need Notes
A channel you can edit The bot key is issued from Edit Channel, so you must be the owner or a mod.
A machine that stays on Linux with systemd is what's documented here. A Mac or a always-on desktop works too β€” anything that can keep a process alive. It does not need to be the machine you listen from.
Python 3.12 or newer uv will fetch one for you if yours is older.
curl on the PATH Only for the Metal Archives source, which is off by default. Its Cloudflare refuses HTTP/1.1 and Python's stdlib speaks nothing else, so that one module shells out to curl --http2. Everything else is stdlib HTTP.
15 minutes of signups A Spotify developer app (free) and optionally a Last.fm API key (free).

No inbound ports, no public IP, no domain. It dials out to wss://app.rvrb.one/ws-bot and that's the only connection it needs, so it's happy behind any NAT.

What it needs from the machine

Measured on a live instance after ~17 hours up, 612 plays logged:

Figure Notes
Disk, one-off ~100 MB The Python toolchain dominates: uv's managed Python is ~84 MB, the virtualenv ~11 MB, the repo itself ~5 MB. uv also keeps a shared download cache outside the project.
Disk, growing ~2 KB per distinct track The database is rvrb.db. A play costs ~230 bytes; the expensive part is the track cache at ~1.9 KB per track, which is a full Spotify object kept so the same song is never fetched twice.
Disk, realistic 1.5 MB after a week 612 plays and 339 cached tracks came to 1.5 MB total. Growth tapers hard β€” a room replays the same music, and only new tracks cost anything.
Disk, ceiling ~220 MB The cache evicts itself at 100,000 tracks (RVRB_BOT_CACHE_LIMIT; 0 disables eviction). You will not get near it: that's more distinct songs than most rooms play in a decade.
Memory ~41 MB RSS Steady. It holds no audio and streams nothing.
CPU ~0% Idle between events. It's a websocket client that occasionally makes HTTP calls.
Bandwidth single-digit MB/day Mostly websocket frames β€” the room roster is resent on every join and leave. API calls are a few hundred a day at a few KB each.

A Raspberry Pi is more than enough. So is the cheapest VPS anywhere.

Nothing is written outside the project directory except uv's toolchain and cache (~/.local/share/uv, ~/.cache/uv), and nothing leaves your machine except calls to the APIs listed below.


1. Get the code

The repository is private and self-hosted. Jordy adds you as a member, and you'll need a personal access token (GitLab β†’ Preferences β†’ Access Tokens, scope read_repository, or write_repository if you plan to contribute) to use in place of a password.

git clone https://dev.izeni.net/jgunderson/hotbot.git ~/hotbot
cd ~/hotbot

⚠️ Expect a certificate error. The server's TLS certificate is issued by a private ("Caddy local") authority that your machine has no reason to trust, so git will refuse with server certificate verification failed. It is not a sign that anything is wrong. Two ways past it:

```bash

Either: trust it for this host only, which is what everyone here does.

git config --global http.https://dev.izeni.net.sslVerify false

Or, properly: get the CA certificate from Jordy and point git at it.

git config --global http.https://dev.izeni.net.sslCAInfo /path/to/caddy-root.crt ```

Scope it to the host, as above β€” never git config --global http.sslVerify false, which turns verification off for every server you ever talk to.

Everything below assumes you're in that directory. If you put it somewhere else, remember the path β€” systemd will need the absolute version of it later.

Changes go through merge requests. main is protected, so work on a branch and open an MR rather than pushing to it:

git checkout -b what-youre-changing
# …edit, commit…
git push -u origin what-youre-changing

GitLab prints the MR link in the push output. CONTRIBUTING.md covers what to put in a bug report and what makes a merge request easy to take β€” worth two minutes before either.

2. Install uv

uv manages the Python version and the dependencies. One command:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then open a new shell (or source ~/.bashrc) so uv is on your PATH. Check:

uv --version

You never need to create a virtualenv or run pip install β€” uv run handles both.

3. Get your credentials

Three, and only the first is required. The bot degrades honestly without the others: each missing credential disables its own feature and says so, rather than breaking anything else.

a. The RVRB bot key β€” required

In RVRB, open your channel β†’ Edit Channel β†’ INTEGRATIONS β†’ External Bots β†’ create a bot. Copy the key.

Two things to know about it:

b. Spotify β€” required for anything that queues or plays music

Go to https://developer.spotify.com/dashboard, click Create app, name it whatever you like, tick Web API, save. Then open the app's Settings and copy the Client ID and Client secret.

No redirect URI, no scopes, no user login. The bot uses client-credentials auth, which reads public catalogue data only. It never touches your library, your playlists, or your account.

Use your own app, not someone else's. Spotify's quota is per app, and sharing one means a busy afternoon in another room takes your ~recs down with it. Your own app also means dev mode is fine β€” the bot deliberately avoids every endpoint that dev mode restricts.

Without Spotify: ~recs, ~mix and friends still suggest music, but nothing can be queued or played, because turning "Camel β€” Lady Fantasy" into a track RVRB can stream is Spotify's job.

c. Last.fm β€” optional

A key from https://www.last.fm/api/account/create. Read methods need the key only β€” no secret, no session, no signing.

Without it you lose similarity and popularity data and the album write-ups in ~album. ListenBrainz and Deezer need no credentials at all, so ~recs still works.

d. Last.fm scrobbling β€” optional, and probably not for you

Skip this unless RVRB's own scrobbler has stopped working on your channel. RVRB scrobbles room-wide at the channel level; it's a platform feature, not a bot job. Turning this on where theirs is healthy puts every play in the history twice, and Last.fm has no bulk undo.

It exists because that is exactly what happened here β€” the channel scrobbler died on 2026-08-06, host-side config verified correct, two reports unanswered β€” so the bot took the job over. The whole diagnosis is in CHANNEL-CONFIG.md.

Four values, and a second Last.fm application separate from the read key above:

LASTFM_USER=              # the account plays should land on
LASTFM_PASS=              # its password
LASTFM_SCROBBLE_KEY=      # api_key of an application of its own
LASTFM_SCROBBLE_SECRET=   # that application's shared secret

Then in settings.toml:

[scrobble]
enabled = true

⚠️ Separate applications on purpose. LASTFM_KEY above only reads. These four can write to a public profile under an account whose password you've handed to a program β€” a much larger blast radius, and worth being able to revoke independently.

⚠️ Running several channels? Then use [[scrobble_profile]] instead of the [scrobble] section β€” a profile per Last.fm account, and each room names the one it belongs to. Rooms can share an account or have none. See More than one channel.

If a lapse has already happened, scripts/scrobble_backfill.py recovers it from the bot's own play log β€” but only the last 14 days, because Last.fm drops older scrobbles silently. Run it the day you notice.

e. Discogs β€” optional

A personal access token from https://www.discogs.com/settings/developers β€” the Generate token button, not "Create an application", which is the OAuth route and more setup than this needs. Free, no application registration, 60 requests a minute.

It doubles what ~credits can answer: 44% of this room's tracks against MusicBrainz's 20%, and roughly double the depth. Without it ~credits still works, on MusicBrainz alone.

DISCOGS_TOKEN=

⚠️ Discogs personal tokens authenticate through an Authorization header, not the ?token= query parameter you'll find in some examples β€” that belongs to the consumer key/secret flow and answers 401 with a message indistinguishable from a wrong token. The bot already does this correctly; it matters if you go poking with curl.

f. An AI key β€” optional, and the room's host pays

~ask answers a question in a short paragraph; ~art posts an image from a description. Both run on an API key the channel host supplies, and neither does anything until one is named: the bot holds no credits, and a room without a key gets a line saying so when somebody tries.

One xAI key does both. Create one at https://console.x.ai, put it in .env.bot under any name you like, then point settings.toml at that name:

[ai]
chat_key_env = "XAI_API_KEY"
image_key_env = "XAI_API_KEY"

Any vendor with an OpenAI-compatible endpoint works for chat (chat_url), and OpenAI works for both. Optionally put a free ImgBB key (https://api.imgbb.com/) in .env.bot as IMGBB_API_KEY β€” no setting needed, it is one account for the installation. With it, ~art's pictures are hosted there and expire after art_keep_days (60); without it the provider's own URL is posted, which expires within days and then shows a broken box in everyone's scrollback. There is no keyless fallback any more: catbox was one until it went down for most of Sep 24 2026, and a host that hands back a URL resolving for nobody is worse than none. settings.example.toml explains the caps, the everyone / allowlist / off switch per command, and the prices you can write down so the ai_calls ledger reports dollars rather than just tokens. Running several rooms? A key is never inherited between them β€” see More than one channel.

What it costs, measured Sep 2026: a ~ask reply on grok-4.3 is a fraction of a cent; a ~art image is $0.02–$0.05. ~art is capped per person (three, then a doubling wait); ~ask is not.

Prove the key before a room sees it:

uv run -m hotbot.ai check                         # is a key named, and is it set?
uv run -m hotbot.ai ask what is krautrock         # one real call, with what it cost
uv run -m hotbot.ai art a burning turntable       # one image, re-hosted, URL printed

Several rooms? Add --channel "the room's name" β€” keys don't inherit, so there is no "the" key to check.

4. Write your .env.bot

cp .env.bot.example .env.bot
$EDITOR .env.bot

Fill in RVRB_BOT_API_KEY, SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET, and LASTFM_KEY if you have one. The example file explains every other setting; the defaults are fine.

Also set RVRB_BOT_CONTACT, which is not a credential β€” it is an email or URL that reaches you. Requests go out as hotbot/0.1.0 alone until you do. MusicBrainz asks for a contactable User-Agent and the bot makes ~22 requests to them each time it refreshes its genre list; anonymous clients are the first to be rate-limited or blocked. It is deliberately not shipped with a value, because a contact baked into the source would point MusicBrainz at this bot's author about your traffic β€” and point your traffic back at them. The bot says so once at startup while it is unset, so nothing breaks if you skip it; it just makes you harder to reach.

⚠️ Never source .env.bot. systemd parses it as plain KEY=VALUE, not as a shell script, and two values in it are actively hostile to a shell: RVRB_BOT_PREFIX='~' expands to your home directory (so the bot would look for commands starting /home/you), and an unquoted bio containing spaces makes bash try to run the second word as a command. Everything below reads the file the same way the service does.

5. Check the credentials before you connect

uv run -m hotbot.rec_cli --check

This makes one cheap live call per source and tells you which are working. Worth doing now, because a bad key and a track with no data both look like "no results" once the bot is live.

Optionally, confirm the code itself is healthy β€” the suite is fully offline and takes seconds:

uv run pytest -q

6. First run, in the foreground

uv run -m hotbot.bot

A good start looks like this:

INFO    store: rvrb.db (0 plays)
INFO    connected
INFO    ready β€” joining channel 6504c77068cfc6c1031078cc as YourBot (bot_1786098826242)
INFO    editUser sent for: bio, displayName, image
INFO    identified ourselves in the roster as 6a75b48a560e6fc7fb88097a

⚠️ Since about Oct 10 2026 that editUser line is sent and then ignored. RVRB moved the request to HTTP, where it edits only a person's own account with their login, so the bot can't set its name, bio or pictures any more; it logs RVRB didn't apply our profile when the room shows the old name. The bot keeps whatever the room's admin gave it when creating it: create it under the name you want (BOT-PROTOCOL.md says how), and expect RVRB's default pictures.

Now type ~help in your channel. If the bot answers, you're done with the hard part.

Stop it with Ctrl-C.

If it connects and immediately disconnects, in a loop, with no error: that's either an invalid key or another process already using it. Those two produce an identical silent close β€” the server sends no reason β€” so check both.

7. Run it as a service

mkdir -p ~/.config/systemd/user
cp systemd/hotbot.service ~/.config/systemd/user/
$EDITOR ~/.config/systemd/user/hotbot.service

Change WorkingDirectory and EnvironmentFile to wherever you cloned the repo, and check that ExecStart points at your actual uv (which uv β€” a systemd user unit gets a minimal PATH that does not include ~/.local/bin, so the absolute path is required).

systemctl --user daemon-reload
systemctl --user enable --now hotbot
systemctl --user status hotbot

Then, and this is the step everyone forgets:

loginctl enable-linger $USER

Without it, systemd kills your user services when you log out β€” so the bot runs perfectly while you're on the machine and vanishes the moment you close the SSH session.

Watch it live:

journalctl --user -u hotbot -f

8. Give it a face, and make it yours β€” optional

Copy settings.example.toml to settings.toml. Everything in it is optional, and the bot runs perfectly well without the file at all.

[bot]
prefix = "!"                       # `~` by default
display_name = "YourBot"
bio = "Runs the decks on Thursdays."
image = "https://example.invalid/avatar.jpg"

[commands]
disabled = ["lyrics"]              # gone entirely
hidden = ["livecuts"]              # works, just not advertised
enabled = []                       # back on, for anything off by default

[limits]
albums_shown = 25
recent_tracks = 250                # plays that count as "already heard"
deets_tags = 5                     # Last.fm tags in the artist line

[queue]
match = "exact"         # stricter: titles must agree exactly

[spotify]
market = "GB"                      # the country whose catalogue we search

[scoring]
count_own_dopes = false            # see below

How long the room remembers. recent_tracks is how many past plays count as "we already heard this" β€” nothing in that window gets queued, and anything that slips in is dropped at hand-over. It's counted in plays, not hours, so what it covers depends on how busy your channel is: at ~85 plays a day the default of 100 reaches back most of a day, while a quiet channel might want it higher to cover the same stretch of calendar. A track that has just played is always dropped from the queue whatever the number. Naming a track outright with ~play still overrides it β€” the filter exists to stop the bot repeating itself, not to overrule a person.

recent_tracks = "all" is the other end: every play ever logged, so the bot never repeats itself at all. It rebuilds that set on every play and again at hand-over, so a channel with a very long history should prefer a number. There is no zero β€” 0 would mean "look back across no plays", which is the rule switched off rather than tightened, so anything below 1 is refused with a line in the log.

How strictly a repeat is recognised. [queue] match decides whether a queued track counts as "already played" when the titles differ. The Spotify id match is always exact β€” same id, same recording β€” so this governs the title fallback that catches one song listed under two ids. reissues (default) ignores a different pressing of the same recording (- Remastered 2019, - Mono), because a remaster is the same performance by the same people; exact compares titles as they are; versions ignores a different performance too (- Live at ..., - 2026 Remix). Reach for versions only if your room would rather never hear a song twice in any form β€” a live take is another rendition, not a worse copy of the studio one.

Which country's catalogue. [spotify] market decides what search can find and which copy of a track Spotify hands back β€” it relinks ids to the one playable in that market. It's a property of where your room listens rather than of where you host the bot, and without one Spotify happily returns tracks that won't play. RVRB_REC_MARKET beats the file, as the environment always does.

~autolike and scoring. ~autolike makes the bot dope every track. Its own dope is left out of the score behind ~up by default, because a vote that is always cast carries no information β€” counted, the bot would score everything it hears, seed from that, and narrow its own rotation. If your bot never autolikes, count_own_dopes = true is the honest setting. Its star always counts unless you say otherwise; nothing casts one automatically.

Choosing a prefix. ! and / belong to RVRB's built-in bot, and \ and - to the two third-party bots in the wild β€” the default ~ collides with none of them. If another bot in your room already uses ~, this is the setting to change. It must be a single punctuation character.

Switching commands off, and on. Every command is in one of three states, and every one of them is enabled unless the code ships it otherwise:

state what it means
enabled runs, and ~help advertises it. The default for everything.
hidden runs, and ~help <name> still explains it β€” it just isn't advertised.
disabled gone: absent from ~help, and typing it gets the same answer as a typo, rather than "that's switched off", which would only advertise the thing you took down.

Name a command in the matching list to put it in that state. All three follow aliases, so naming recs covers ~rec and ~recommend. A command in two lists lands in the stronger state and the log says so.

enabled exists for the commands that are off unless turned on β€” one that ships disabled because its default would be wrong for a room that never asked, or one this installation switched off in [commands] and one room wants back. With more than one room that second case is the common one; see [channel.commands] below.

~help and ~about can't be disabled. A bot you can't ask about is indistinguishable from a broken one. The attribution is this project's choice rather than the licence's demand β€” MIT covers copies of the software, not a running program's output.

Identity. The display name, bio and four image URLs are applied on every connect. Anything left out is not sent at all, so RVRB keeps whatever's already there β€” an empty value would clear the field rather than leave it alone.

The environment always wins. Every one of these also has an env var (RVRB_BOT_PREFIX, RVRB_BOT_DISPLAY_NAME, RVRB_BOT_DISABLED, …), and if one is set it beats the file. That's so adding this file can't quietly change a deployment that already works. Point elsewhere with RVRB_BOT_SETTINGS=/path/to/settings.toml.

Anything the bot refuses or can't parse is written to the log rather than silently dropped, so check journalctl --user -u hotbot if a setting doesn't seem to have taken.


Before you turn it loose in a room

Five behaviours that surprise people, all deliberate:

  1. Anyone in the room can run any command. There is no permission system β€” no owner check, no allowlist. That includes ~skip, ~clear and ~down. It has been fine in practice in a small friendly room; know it before a busy one.
  2. It DJs. ~play and ~add build a set and ~up puts it on a real deck, where it answers the server's "give me a track" with whatever is queued. It's a participant, not a spectator. ~down steps off, politely with ~down after (finishes the current track) or immediately with a bare ~down.
  3. It votes. ~like, ~dislike and ~star cast the bot's vote, which shows up in the room like anyone else's.
  4. It can leave when the room empties, and by default it doesn't. [presence] leave_when_alone = true makes it look in periodically and stay only if somebody else is there, so an idle room shows nobody rather than a bot padding its listener count. Off by default because joining is visible: a room with a welcome bot greets the bot every time it looks in, and an idle channel collected around a hundred such lines before this was turned off. The gap doubles while a room stays empty ([presence] max_seconds, 15 minutes) which helps, but the interval that keeps an idle room quiet is the same one that leaves an arriving listener waiting. Worth turning on for a room the bot is usually wanted in.
  5. It records every message in the room. Since Sep 18 2026 each chat frame β€” everyone's, including the platform's and the bot's own β€” is filed in the messages table of rvrb.db, with sender and text, and AI commands (when built) will be filed in ai_calls with what they cost. It exists for debugging: SELECT id, at, user_name, kind, substr(payload,1,80) FROM messages ORDER BY id DESC LIMIT 40 shows exactly what happened, in arrival order, which is what settles "the bot did X". It is not pruned, never leaves the machine, and is git-ignored β€” but it is a record of what people said in a room, and that is yours to be deliberate about.

Day to day

systemctl --user restart hotbot     # after ANY code change
journalctl --user -u hotbot -f      # what it's doing
journalctl --user -u hotbot -n 100  # what it just did

Restarting is safe at any time β€” it does not interrupt a track that's playing. Restart=always only covers crashes, not your edits, and a stale process looks exactly like a command that silently does nothing. That's the most common ten minutes anyone wastes here.

Your data is rvrb.db in the working directory: every play, how the room voted, the queue, and one level of undo. It survives restarts, and it's the only copy β€” worth backing up if the history matters to you. Nothing in it leaves your machine.

Troubleshooting

Symptom What it means
Connects, then drops, repeatedly, no error Invalid key or a second process using the same key. Both close silently and look identical. pgrep -af hotbot.bot
Every lookup says "nothing found", all at once Spotify quota wall. journalctl --user -u hotbot \| grep 429 will show a Retry-After β€” it can be hours, not seconds. Wait it out; retrying makes it worse.
A command does nothing, and the log is silent You edited code and didn't restart.
Bot answers ~help but can't queue anything Spotify credentials missing or wrong. uv run -m hotbot.rec_cli --check
Works until you log out, then vanishes loginctl enable-linger $USER
Bot looks for commands starting /home/you You sourced .env.bot in a shell. Don't β€” see step 4.
uv: command not found from systemd, fine by hand ExecStart needs uv's absolute path.
It's on the decks but plays nothing Nothing queued. ~queue to look, then ~play or ~add to line something up β€” ~up only resumes an existing queue.
~ask says there's no AI key, but you set one Read the bracket: no chat_key_env means settings.toml has no [ai] key for this room (with [[channel]] blocks, it must be in the block β€” keys don't inherit); names X, which is empty means .env.bot lacks X. Restart after either.

What it costs

Roughly 100–300 Spotify requests a day for an active room. For scale, ~add is the most expensive command by a distance β€” about 4 requests per run, because album lookups fetch each track β€” and a single busy hour has hit 200 requests across all sources.

The one real hazard is Spotify's quota wall for development-mode apps. It is not the 30-second window the rate-limit docs describe: hitting it once returned Retry-After: 37297, which is 10.4 hours of every lookup failing. It has happened exactly once, during heavy scripted testing rather than normal use, but it's why the bot never retries a 429 β€” it reports it and backs off. Your own Spotify app means your room's traffic can only ever affect your room.

More than one channel

One process, one database, a [[channel]] block per room. Get a key for each room the same way you got the first β€” each channel issues its own β€” and put them in .env.bot under names of your choosing:

RVRB_BOT_API_KEY_ARSONISTS=…
RVRB_BOT_API_KEY_FRIDAYS=…

Then name those variables in settings.toml:

[[channel]]
name = "arsonists anonymous"
key_env = "RVRB_BOT_API_KEY_ARSONISTS"

[[channel]]
name = "black fridays"
key_env = "RVRB_BOT_API_KEY_FRIDAYS"
display_name = "HotBot"
[channel.scrobble]
enabled = false

Restart, and the log shows one session per room, each naming the room the server gave it:

INFO    channel arsonists anonymous: key from RVRB_BOT_API_KEY_ARSONISTS
INFO    channel black fridays: key from RVRB_BOT_API_KEY_FRIDAYS
INFO    store: rvrb.db (2 sessions)
INFO    ready β€” joining channel 6504c77068cfc6c1031078cc as HotBotπŸ”₯ (bot_1786098826242)
INFO    ready β€” joining channel 66f1b2c39d8e4a7b05c1d240 as HotBot (bot_1786098826301)

There is no channel id to configure. The key is the credential and the server names the room on connect, so a block identifies its room by naming the variable that holds its key. name is what appears in the log and nothing more.

A block only names what it wants different. Everything else is inherited from the sections above it, so a bot in five rooms has one description of itself rather than five that drift. prefix, the six identity keys, [channel.limits], [channel.scrobble] and [channel.commands] are per room; [scoring], [queue] match and [spotify] market are not.

Commands are per room, per command. A [channel.commands] block takes the same three lists and overrides [commands] for the commands it names, inheriting the rest β€” so one room can hide what the others advertise, and a command that is off by default is turned on by the rooms that asked for it:

[[channel]]
name = "theirs"                    # the room that wanted it
key_env = "RVRB_BOT_API_KEY_THEIRS"
[channel.commands]
enabled = ["bandpic"]

[[channel]]
name = "ours"
key_env = "RVRB_BOT_API_KEY"
[channel.commands]
hidden = ["bandpic"]               # runs if somebody asks, not advertised

The rooms don't mix. Every play, queue entry, vote and per-room switch carries its channel, so ~queue in one room lists that room's queue, the never-repeat rule only remembers what that room has heard, and ~autobio is set per room. What they do share is the parts that cost money or quota: the Spotify client, its token, and the track cache. That sharing is the point β€” a track fetched for one room is free for the next, and when Spotify throttles us, every room knows at once instead of the others walking into the same wall.

⚠️ One key per block. The server allows one live connection per key, so two blocks naming the same variable would have their sessions evict each other forever. That is refused with a line in the log β€” but two processes on one key is the same loop and nothing can stop that, so if you previously ran a process per room, turn the old units off before starting this.

⚠️ A block beats the environment, unlike every other setting here. RVRB_BOT_PREFIX in .env.bot applies to every room that doesn't name its own; a room that names one wins, and the log says so when the two disagree.

Scrobbling, per room

Each Last.fm account is a [[scrobble_profile]], and a room scrobbles by naming one:

[[scrobble_profile]]
name = "mine"                       # the four LASTFM_* variables, by default

[[scrobble_profile]]
name = "the guest's"
user_env   = "LASTFM_USER_GUEST"
pass_env   = "LASTFM_PASS_GUEST"
key_env    = "LASTFM_SCROBBLE_KEY_GUEST"
secret_env = "LASTFM_SCROBBLE_SECRET_GUEST"

[[channel]]
name = "my room"
key_env = "RVRB_BOT_API_KEY"
scrobble_to = "mine"

[[channel]]
name = "their room"
key_env = "RVRB_BOT_API_KEY_THEIRS"
scrobble_to = "the guest's"

[[channel]]
name = "somebody else's"
key_env = "RVRB_BOT_API_KEY_OTHER"
# no scrobble_to, so nothing is submitted for this room at all

A room scrobbles only if it names an account β€” there is nothing to turn off. That is deliberate and it is the one setting that works this way: scrobbling writes to somebody's public listening history, there is no bulk undo, and nothing in the room shows it happening. Every other setting a block leaves out is inherited; this one is not.

Rooms can share an account. Point two blocks at the same profile and it receives each play once, even if both rooms play the track in overlapping windows β€” the ledger is keyed on (account, played_at), so what is protected is the profile rather than the room.

None of this touches LASTFM_KEY, the read key behind ~artist and ~album. That one is installation-wide, always used, and unrelated to whether any room scrobbles.

⚠️ A scrobble_to that names no profile is an error in the log, and that room does not scrobble. It is never quietly taken as "off" β€” a typo and a decision must not look the same.

The startup log prints the mapping, which is the one thing a room-by-room config can't show at a glance:

INFO    scrobbling: my-lastfm-name <- my room
INFO    scrobbling: their-lastfm-name <- their room

⚠️ Backfilling a multi-room database needs --channel. scripts/scrobble_backfill.py refuses to guess which room's plays belong to the account it authenticates as, because sending the wrong room's history to a profile can't be undone. It lists the channels it found.

Still one process per channel if you'd rather, with RVRB_BOT_DB pointed somewhere different for each β€” but you lose the shared cache and the shared throttle clock, and two processes on one Spotify app is how a busy afternoon in one room takes the other's ~recs down. The systemd template unit for that: rename it hotbot@.service, set EnvironmentFile=%h/hotbot/.env.%i, write one env file per room, and start them by name:

systemctl --user enable --now hotbot@myroom hotbot@otherroom
journalctl --user -u hotbot@myroom -f

Licence, and the honest disclaimers

MIT licensed β€” see LICENSE. Use it, change it, run it, redistribute it, fork it commercially if you like. Keep the copyright notice. That's the whole obligation.

Which also means, in the licence's own capitals: the software is provided "as is", without warranty of any kind. In practice:

If you improve something, a patch back is welcome but not owed.