It all started with a simple question: Why do I actually need five different tools to make my stream run the way I want? A bot for chat, a service for alerts, a browser widget for song requests, something for polls, and then Discord notifications on top. Each with its own login, its own interface and its own limits.
So I started building my own. Self-hosted, on my own server, in Docker. What began as a small song request bot has grown into a pretty complete stream control centre. Time for an overview.
What the bot can do today
Music: song requests with YouTube and Spotify
Music is still the heart of it. Viewers request a song with !sr – via link or simply with a search term. The bot finds the track on YouTube or Spotify, checks length, duplicates and, if enabled, whether it really is a music video, and adds it to the queue.
On top of that come the usual suspects: !skip, !voteskip, volume, a block list – and with !srboost viewers can move their request to the front in exchange for “souls” (more on that in a moment). When the queue is empty, an AutoPlay playlist takes over.
Brand new: song requests are off after every restart, and the bot regularly checks whether I'm actually live. When the stream ends, requests close automatically. If someone switches them on manually while offline, they stay open for five minutes and then close again. No more “oops, someone filled the queue at 3 a.m.”.
Overlays for OBS
Everything you see on stream comes straight from the bot as a browser source – thirteen of them by now:
- Now Playing and queue
- Alerts for follows, subs, resubs, gift subs, bits and raids – with custom sounds, images and animations
- Chat on stream, including Twitch, BTTV, 7TV and FFZ emotes
- Goals, counters (the classic: a death counter), polls
- Recent events as a list or ticker
- Credits with all followers, subs and the most active chatters of the session
- Dice, minigames and an ad break countdown
The nice part: the dashboard shows a live preview of every overlay, you set design, colour, position and language, and simply drag the link into OBS. Done. A global design with frames, fonts and more than twenty pop-in animations makes sure everything fits together.
Minigames and the “souls” currency
Watching the stream automatically earns you souls. And you can gamble them away: on the slot machine (!gamble), at roulette (!roulette) or in a ghost duel against another viewer (!duel @name 100). Every game has its own on-stream animation – and the bot only reveals the result in chat once it's visible on screen. Suspense matters.
There are also ranks based on souls, a dice system with full tabletop notation (!roll 2d6+3, advantage, difficulty class …) including a channel points reward, quotes, polls, giveaways and a few fun commands.
Stream control right from the dashboard
Change title and category, start or snooze ads, set markers, create clips (now with a title, too: !clip What a fail) – all with one click. Raids automatically get an official shoutout, and the bot warns chat ahead of the next ad break. !followage and !watchtime are there as well now.
Discord
The bot posts live notifications, clips and, if you like, a small recap after the stream: how long it ran, how many new followers and subs came in and which clips were made. Self-assignable roles for live pings are a bonus.
Under the hood
A few things I paid particular attention to while building it:
Several bots, one installation. The bot is multi-tenant now: several channels run separately on the same instance, each with its own database, settings and permissions. An admin console shows status, users, sessions and an audit log. Per bot you can decide which features are available at all.
Security from the start. Login with two-factor authentication or passkeys, critical admin actions require re-confirmation, sessions are only stored hashed, and overlay links carry their token in a way that never ends up in a server log. After every larger feature block there is a dedicated security round – most recently, for example, stricter checks for clip links and rate-limited chat commands.
Test before it goes live. Every change runs through a test suite in a throwaway container – without network access, using a copy of the real database from the latest backup. It tests the API, permissions, overlays, Content Security Policy, memory leaks and the individual modules. Only when it says “GESAMT: OK” does a release go out. Rollout happens through a deploy script that takes a backup first and rolls back on its own if something goes wrong.
Bilingual. Dashboard, sub-pages, overlays and even the API error messages are available in German and English – switchable with one click. That turned out to be more work than expected, because German text was hiding in a surprising number of places.
What I learned
- Small details make the difference. Nobody reported it as a “bug” that the duel result appeared in chat before the animation finished – but it completely ruined the fun.
- Twitch APIs are powerful, but quirky. Rate limits on shoutouts, scopes for every little thing and emote positions counted in Unicode code points instead of characters – you never stop learning.
- Self-hosting is worth it if you enjoy tinkering. I have full control over my data, no subscription costs and can implement any idea right away.
What's next?
The idea list is still long. And the best thing about your own bot: when someone in chat asks “Can the bot also …?”, the answer is usually “Not yet – but soon.”
If you want to see the bot in action: drop by the stream, request a song and challenge me to a duel. Your souls belong to me. 👻
last edited: Nov 10, 2026