Lucas

Project — catbut3

A Modular Twitch Bot With Its Own No-Code Studio

Third version of my Twitch bot: plugins, live events, and a visual editor for streamers.

Image 1
Image 2
Image 3
Image 4
1 / 4
01

In plain English

CatBut started as a small bot for a streamer friend and kept growing. This third version can greet viewers, run mini-games like duels, trivia and roulette, keep a loyalty points system, thank people for follows, subs and raids, play sounds on stream, show the song currently playing on Spotify and even move the streamer's virtual avatar. Everything used to be set up in a technical configuration file, so I built CatBut Studio: a cosy web interface where the streamer creates commands step by step, picks from templates and previews the chat message before saving, without writing a single line of code.

02

For the curious

The bot runs on Node.js and uses the Twurple libraries to connect to Twitch chat, the Helix API and EventSub over WebSocket, with OAuth tokens refreshed automatically. Every chat command and Twitch event is mapped to a handler, either built-in or provided by a plugin; the plugin loader validates each plugin and gives it its own persisted storage. Thirteen plugins cover counters, points, rate limiting, giveaways, duels, trivia, roulette, shoutouts, scheduled messages, OBS scene control through obs-websocket, sounds, VTube Studio and Spotify. A template formatter injects variables such as the sender, target or event data, permissions are checked per command, and user input is sanitised with a protection for the broadcaster. The configuration lives in a single JSON file with schema validation. CatBut Studio is a local HTTP server written in TypeScript (run natively by Node 24) with a vanilla JS front-end bundled by esbuild: it exposes a validated REST API over the config, detects conflicts and references between commands, and is covered by Node test runner tests.

A little summary :

CatBut 3 turns a hobby bot into a real product: a plugin architecture that makes new features cheap to add, real-time integration with Twitch and streaming tools, and a no-code interface designed for a non-technical user. It is the project where I think the most about the person on the other side of the screen.