Want to add some basic link protection to your Streamer bot setup?
This action will read each chat message and delete any that contain links.
- Establish a whitelist of domains that are allowed at any time regardless of permissions.
- Configure the message sent to chat while a link is deleted.
- Permissions are configurable so that Bots, Moderators, or VIPs can all be permitted to post links regardless of domain.
Installation Instructions
These instructions assume you already have streamer bot installed and connected to your Twitch account. Go read this guide to learn how to set up streamer bot intially.
- Copy the Import Code below (triple-click to select easily)
- Click Import at the top of Streamer bot in order to open the import dialog
- Paste the code you copied earlier into the “Import String” box
- Make sure Link Protection shows up as an action
- Click Import at the bottom
Configuring Link Protection
- Open the Link Protection action that you just imported
- change
phlare_bot
to your own bot name in the “if” statement (this isn’t strictly necessary if you have allowBots set to True and your bot is part of your bot Group (see #5 and #6) but it’s a good failsafe. - Check out the %whitelist% argument and add or remove whitelisted domains as desired. leave a single space between domains. Streamer bot allows links from these domains, regardless of permissions. subdomains should be included with any base domain whitelisted, so no need to add both twitch.tv and clips.twitch.tv
- Set the warning you wish to send to chat when the bot deletes a link. You may use variables here if you wish.
defaults message:hey %user%, no links please!
- Set the name of your Bot Group in the %botGroup% variable. See my video on group permissions here to learn how to set up a bot group: https://youtu.be/MdlmfH92vOg
- Set Permissions:
The last section has three arguments – %allowVips%, %allowMods%, and %allowBots%.
Set these to True or False as needed.
Setting one of these to True will allow that role to bypass the link protection rules.
Setting one of these to False will prevent that role from posting links outside of the whitelisted domains.
Import Code
The following is the import code you will need to import the Link Protection Action into Streamer Bot (triple click to select easily)
U0JBRR+LCAAAAAAABADtW/tv4kqW/n2l+R+8vRrdGc11b/kFeH5ZBRLAJKEbCC9vrlb1wjj4NX5AYHT/9z1lA8E80mn6rrZX2pbSAVe56tRX3znnOy7nn3/6F0n6tORx4obBp79L2q/5BdePwjgdHV/23cD1M//t+if0Wf2sfdq28hTDtX+KL/A1wD4XXR7cYCF9jcOU01Tc9eu2HWfpPIxFj2ju4ZjvG96s+aTA8GjfwHhCYzdKt42HI4X9LLih25Yg8zzR9HthF8Mlu3DeLYEr/1lckX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