Description
With this extension you can block links in your chat, you can also add a small list of approved sites for such things as Discord Links, Clips and other Social Media.
Import Code
U0JBRR+LCAAAAAAABADdWllz47pyfk9V/gPj1xw6XCXxvkm0JVHbWBu1xKdSIABSHIHLJan11PnvaZCSrHXOXN+pxImrVJawNBpfNxr9NfnHv/6LIDytaZL6Ufj0N0H9LW/wgzhKMvu6OfBDP1gFH+1P0rPyrD4demmGoO0P/gN+hiigfEjHD5f/MR50hLckyijO+MzfDmPQKltECR9Fgyj06PrU86HSk/ysnJoJTXHix9mh61xQNFiFVXzoCVeM8a4/C9UIulAN5cNSaPnPokU4duXdPuGyS06FSEghYrlUdkSNaFR0qE5EVEayXCkTDbvucf182t9XdEUPa5+30xA5jHKZWbKiFz1bzFaE1pMoaPppFiU7GOQill6MOgL5RpPAz4RxShMB8LxY20uiVcwHdSNCEwSiBDMKAhSS9GIcYhu0SwGpewslMDwKThje9OMoxKskoWF2rzdLfM8Dq52jeoXsQUqul5WDLBsqoWVKRK2kaqImO4ZYQRoWNYmiklRxKdUuQD6zT5noRqmMsGioDthHKbmioRmu6KoIhBGHuBVyMzXbxRxLTZKvex5a6cNS6dFpfj/v/fPjx+8XUN862T040miVYDoq9FKu112jxOd6nTv7FQ7gmIhIuitiRKmoGToVkQM4OvCnauVKieBbHDbU9xbcjNKz9AAj/abj6GRXDv4T8PkhoVu+vwvgfvsRLkevv1H9QQg49SfUpeCjmN5An3ebf3t/n4A+0SZ9f+/6OInSyM2ee6+j9/d6AotuomT5/r7WnqVnVVJl4/09SHGUMN95Jow9XQr8/Xp1Z5dRE85gbplpL3YC7I1VticNO/u2kdov/XhDJq0UTbreTNkusNr1+nLNGk50aNMZ9Jdf+lELN23fabDvVqO1dpSNN5gu2Ey1pfnQi3k/BVlmn8VO2PfsV9Yb2MZ4JBv9gd3qDe2BO5bsl5Gkv453VcN66W6KtaOWOe1JOGCr+a4mY8Xe2Q2jiaZzNm7YO2fCJLtR8d6GtQUOyH6ya0mzaSucTwc2H2sxaQXj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xMwoYiTa3Gy/kH2/73Rax5nP/Gwn8Irp/fesvASF2SEEnZz9+jxtqJNGeEmzIU3WB3+/7TSZz0v+F52ZHxzH8xYQ/Od/A0MpjV7KJwAA
Installation
- In Streamer.bot in select
Import
from the top left.
Copy theImport Code
and paste it into theImport String
. - Add the Following References to the Code in the
Check Url
Action if needed.
mscorlib.dll
System.Text.RegularExpressions.dll
System.dll
- Modify the included “!permit” command tied to the
Permit User Url
to be Moderators only, so only moderators can allow people to post links. - If you don’t want Mods, VIPs or even the broadcaster to be exempt, check the “Check Url” Action on the “Execute Code” sub-action for the following code, and modify the respective “true” to a “false”:
bool ALLOW_MODERATORS = true;
bool ALLOW_VIPS = true;
bool ALLOW_BROADCASTER = true;
- If you want to add whitelisted links that will never be removed, add them to the white list in the “Check Url” Action on the “Execute Code” sub-action in the following code. The way this works is that links that START with these texts will never get removed from chat, I for example added the prefix for my clips and the links to my discord server. Make sure if you add new ones to add commas between them, and to put them in quotation marks.
List<string> whitelist = new List<string>()
{
"https://www.twitch.tv/emongev/clip/",
"www.twitch.tv/emongev/clip/",
"https://discord.gg/DaMEhRs",
"discord.gg/DaMEhRs"
};
- In
Permit User Url
Set the length you want the permit to be active for by changing the argument, by modifying the following line from 30 to whatever length in seconds you want in the “Execute Code” sub-action:
int TIME_TO_PERMIT_SECONDS = 30;
Last Updated: 2024-03-28
Change Log:
1.2 (2024-03-28)
- Fixed delete message API method change.
- Changed the ALLOWS to be in code for easier modification.
- Updated the export to the latest streamer.bot version.
- Made the Check URL include the respective chat trigger right away.