Auto Twitch Clip Scanner

Description

This extension will run via timed action to check for any new clips created within the past hour. If any new clips are created, then they can be posted to Twitch chat or to a configured Discord channel. Also included: a !clip command to create a clip via Chat and post to Chat/Discord

Import Code

twitchClipScanner_v1.0.8.sb (11.4 KB)

Installation

  1. Download the import code file
  2. Click the Import button to open the Import dialog
  3. Drag and drop the twitchClipScanner.sb file into the Import String box and then click Import

Configuration

This action will post new clips to Twitch chat by default

Posting clips only if title is unique

  • Set postUniqueTitlesOnly to True if you only want to post clips that have a title that is different from the channel title

image

Posting new clips to Discord

To post new clips to Discord:

  1. Set the Set argument subaction for postToDiscord to True.

image

  1. Configure your Discord Webhook URL by going to the Configure Discord Clip Webhook URL action, right click the Test trigger, and then click Test Trigger. Paste your Discord Webhook URL into the dialog that opens.

image

Creating the Timed Action

  1. In the Scan for New Twitch Clips action, edit the Timed Action trigger

image

  1. Click Create Timer. Name it something like Twitch Clip Scanner and set the interval to your desired amount of time in seconds. Recommended setting: 60-120 seconds

Optional configuration

You can create actions to enable/disable the timer from when you start/stop streaming.

  1. Create an action called Start Twitch Clip Scanner
  2. Add a trigger Twitch > Channel > Stream Online

image

  1. Add a subaction Core > Timers > Set Timer State and select the timer you created and select Enabled

image

image

  1. Repeat these steps to create a Stop Twitch Clip Scanner, except use the Stream Offline trigger, and a Set Timer State subaction to disable the timer you created.

Start Twitch Clip Scanner

Stop Twitch Clip Scanner

4 Likes

v1.0.1 - added an option postUniqueTitlesOnly to post only if the clip title is different from the channel title

v1.0.2 - added option for logging to a set of json files for debugging purposes

v1.0.6 - After some debugging, I think I can get some consistent results. I’ve cleaned up the logging code. If you need any logging, test the Test Trigger.

1 Like

v1.0.7 - Fixed a bug preventing a clip from posting to discord

v1.0.8 - Fixed another silly bug

1 Like