Twitch has a built-in clip button, but for streamers who want to automate their content pipeline, tying a clip command directly to Nightbot is a game-changer. It allows your most trusted community members—your mods and VIPs—to do the heavy lifting for you.
Why use Nightbot for clipping?
Nightbot is one of the most reliable and widely used chat bots on Twitch. By using its $(urlfetch)
variable, we can trigger external APIs directly from chat. This means when a user types !clip,
Nightbot silently talks to a service like SwiftSnip to generate the video, and then replies in chat with a link
to the result.
Step-by-Step Setup
- Connect Your Twitch Channel: Log in to SwiftSnip and select Twitch to link your channel.
- Copy Your Unique Twitch Command: Go to the Twitch section in your Creator Dashboard and
copy your unique Nightbot command (which includes your
&handle=parameter for optimization):$(urlfetch https://swiftsnip.com/api/nightbot/YOUR_TWITCH_TOKEN?user=$(user)×tamp=$(time)&msg=$(query)&handle=@YOUR_TWITCH_HANDLE) - Add Command to Nightbot: Open Nightbot.tv and log in with Twitch. Go to Commands -> Custom
-> Add Command. Set the name to
!clip. Paste the command in the Message field and save!
Testing the Command
Go live on Twitch, and have a moderator type !clip [optional title] in chat. Nightbot should
instantly reply with something like: "Clip generated successfully! View it here: swiftsnip.in/c/xyz"
All clips generated this way will automatically pool in your SwiftSnip creator dashboard, ready for you to download after the stream ends.