Random Clip
Runs on: Backend.
Picks a random clip from a Twitch channel. The output is the same resolved clip object the Resolve Clip node produces, ready for a Play Clip effect or Extract nodes. You can limit the pool to featured clips and cap the clip length.
Inputs
| Name | Type | Description |
|---|---|---|
channel | string | The Twitch login name of the channel to pull clips from. |
Outputs
| Name | Type | Description |
|---|---|---|
output | object | A clip object with the video URL, title, broadcaster, duration and thumbnail. |
Configuration
- Max Duration (seconds): Only clips this long or shorter are eligible. Blank means any length.
- Featured clips only: Only clips marked as featured on Twitch are eligible.
Example
A !clip command feeds the broadcaster's login into Random Clip with Featured clips only on and a 45-second max duration, then passes the result to Play Clip.