🛡️ TwitchSentry — Manual
Every page of the settings window, what each module decides, and why. If you are here to find out what TwitchSentry is or how to install it, start on the overview page.
Overview · FAQ · Changelog · Report a problem
Everything is configured from one window. There is no config file you are expected to edit by hand, and nothing you have to sign up for: the two link-scanning services, the Twitch application behind the Chat Bot badge and a Discord bot of your own are all optional and free.
Import


Open your copy of Streamer.bot, click Import, and drag the TwitchSentry-stable.sb file (TwitchSentry-pre-release.sb for a beta) into the window that opens, like in the screenshot above. Answer Yes / OK to the prompts that follow to finish the import.

Streamer.bot imports every command switched off. Under Commands, right-click the TwitchSentry group and choose Enable All.
First run
![The Actions page, [TS] - .Settings GUI selected and the menu of its Test trigger open on Test Trigger](https://raw.githubusercontent.com/aaskjer/TwitchSentry/main/Utilities/screenshots/sb-test-trigger.png)
Go to the [TS] - .Settings GUI action, right-click Test and choose Test Trigger. That opens the settings window. (The first start takes a moment — it fetches the language files.)
The defaults are meant to be a working configuration, not a starting point you have to tune. If you change nothing at all, TwitchSentry filters links, spam and your blocked words, watches how people chat, learns from what it removes, hands out permits, bans the accounts on the Shared Bot List, raises the Viewbot Alarm, keeps a User History and shows Windows notifications; Raid Protection, Hate Raid Protection, Follow Wave Protection, Silent Bot Protection, Offline Protection, AutoMod, Twitch Warn, Check Link, Voting and the Discord, Stoat, GameVox and ntfy notifications stay off until you switch them on.
The settings window
| Dark Mode |
Light Mode |
 |
 |
Pages are grouped down the left: Setup, Chat, Spam Filter, Bots & Raids, Moderation, Results and Help. Click a group heading to collapse it.
A module's page has tabs under its title: its settings first, then Messages, everything that module says in chat. The Message Filter and Raid Protection also have a Chat Modes tab, Hate Raid Protection a Lockdown and a Known Hate Accounts tab, Silent Bot Protection a Viewbot Alarm tab. The switch that turns a module on or off sits in the title bar, so it is there on every tab.
The window opens on Home, under a banner with the version you are running:
- Right Now says in one line whether TwitchSentry is watching your chat or running in test mode, with the profile, the default action and test mode beneath. Every module is a chip under Modules On or Modules Off, the Message Filter, Link Filter and Spam Scoring stand under Always On, and Notifications shows where alerts go. A chip follows its switch at once, before you save, and a click on it opens its page.
- Start Here lists the five first steps, each with a button: Profiles... opens the Profiles dialog, Start Test Mode starts test mode, the others open the page they are about. Read Getting Started in the Manual opens the Manual at its first tab. Hide puts the card away; ☰ → Options... → Notices brings it back.
- Activity counts TwitchSentry's actions today, in the last seven days and in total, and says what it did, which module was busiest and what it did last. Open Action Log is in its corner.
- What It Knows shows the suggestions waiting, the known patterns and the followers blocked this month; a click on a line opens its page.
- Help And Links leads to Getting Started, the Manual, the FAQ, the report form, the repository and the Streamer.bot thread.
Nothing on Home is a setting of its own: every line lives on the page that owns it.
A few things worth knowing before you start:
- The search box at the top left filters the page list by page name, setting label, or the internal setting key, and opens the tab that holds what it found. It also finds the Manual's terms, chat commands and deck arguments.
Ctrl+F focuses it, Esc clears it.
- The ☰ menu, in front of the search box, holds the things you reach for occasionally: profiles, the Options window, expert mode, test mode, the language files, the light/dark theme, sharing with other streamers, opening a ticket, and both reset buttons.
- Report... fills in GitHub's new-issue page and opens it in your browser — nothing is sent from the window, and you submit it yourself under your own account. The first dropdown says which part of TwitchSentry it is about and becomes a label, so tickets about the same thing sit together; Not sure is one of the choices. The second decides whether it is labelled
bug or enhancement. A block describing your setup always rides along, shown in full before it goes: TwitchSentry's version, settings schema, whether betas are announced and which profile you are on; the Streamer.bot version; your window language and which version of that language file, the theme, and whether expert and test mode are on; which modules are on and which are off; the shared action and the four sensitivity steps; whether the VirusTotal key, the IPQS key and the Discord webhook are set or not set, and whether the Chat Bot badge is on and its application filled in; whether the two cache files are there; and your Windows build, 32- or 64-bit, CLR version and desktop size. No channel name, no API keys, no webhook URL and no file paths.
- The notice strip across the top carries anything the window needs to tell you — an available update, a translation that is behind, a setting that will not do what it looks like it does. Notices stack, and the ✕ on one hides it for good. An update notice for a beta also carries Ignore Betas, which does the same for every beta to come: only stable releases are announced after it. ☰ → Options... → Notices lists every hidden notice and brings each one back on its own, or all of them at once.
- The ? in a card's corner opens the Manual page at that card's section, for the cards whose options need more than their tooltips. A ? in a page's title bar, or beside the first sentence of a later tab, opens what the Manual says about the page or that tab as a whole.
- Nothing on a page is saved until you press Save. The bottom left says whether you have unsaved changes. Picking a profile, starting test mode and the Options window's own Save write at once.

Profiles
In the ☰ menu, at the top. One decision instead of thirty-four: how hard the message filter, the raid
and follow filters and spam scoring all push, set together. Picking one asks first, then writes those
settings and reopens the settings window showing them, so nothing changes behind your back and you can
tune anything afterwards. Changes in the window you had not saved are discarded.
Five built-in profiles ship with TwitchSentry, and those five names are reserved.
| Profile |
What it is for |
| Relaxed |
Best for small chats or as backup. Every check still runs, the cosmetic ones only look at somebody's first message. |
| Balanced |
Best for most chats. The default. |
| Strict |
Best for crowded chats. Tighter thresholds and each check fires faster. |
| Under Attack |
Best for bot attacks. Everything at its tightest, chat modes enable automatically on an incoming raid rather than after the first message. |
| Just Chatting |
Best for talking or reaction streams. The message and spam sides ease off; the raid and follow sides stay as they are. |
Every built-in profile names the same settings, which is what makes coming back work: Balanced
undoes everything Under Attack turned on instead of leaving the heavy switches standing.
Saved profiles are yours. Type a name under Save Your Profile and Save Current Settings writes
what you are running to TwitchSentry/Settings/Profiles, where it joins the list under that name.
Anything else dropped into that folder shows up too, so a profile a friend sent you only has to be
copied there. Each one shows how many settings it carries and when it was written, and the ✎
beside one renames it, file and all, and the ↺ beside that writes what you are running now into it, keeping its name and its file. Nothing in this window deletes a profile file — the folder is the list, and what is in it is yours to arrange.
The title bar says which one you are on. TwitchSentry – Settings · Strict, or · Strict (modified)
once the settings that profile names no longer say what it said.
When (modified) appears depends on how many settings a profile covers, and the two kinds cover
very different amounts. A built-in profile claims exactly 34 settings: four of the five sensitivity sliders (all but the Spam Learner's), all 23 dials
behind them, and seven switches (Require Two Signals on the message and raid sides, Require Two
Parts, First Message Only, As Soon As A Raid Arrives, and Shield Mode on a raid and on a follow
wave). It has no opinion about the other 350, so changing an action, a timeout duration, a
message, a Discord switch or a whole module on or off leaves you exactly on Strict, with no
marker.
A saved profile claims all 384, so almost any change marks it modified. If you want the tight
reading, save your settings as a profile: that is what makes every one of them something to drift
from.
Before you click one, it tells you what it would do. Under every profile in the list is a would change N settings line; open it and each one is there, with what it says now and what the profile would put in its place. A profile that would change nothing has no such line, and the one you are on is marked ✔ Active.
The list is the folder, live. It is re-read every time the window comes back to the front, so a file you drop in, rename or delete in Explorer shows up without closing and reopening the dialog — and the folder button in the corner is one click away. A search box appears above the list once there are six or more.
What a profile holds. Every threshold, every switch, every action and every duration — the whole
of how strict this channel is, which is 384 of the 584 settings in configs.json.
What it deliberately does not: your Discord webhook and the Discord Bot card, everything on the Stoat,
GameVox, ntfy and Windows tabs of Notifications, your VirusTotal and IPQS keys and the Chat Bot badge's
application; the people, words and addresses this channel knows, meaning your whitelist, your excluded and
trusted users and groups, Trusted Raiders, Voting's excluded viewers, the AutoMod allow list, the Word
Filter's blocked words, Hate Raid Protection's terms and the Spam Learner's ignored terms; and what belongs
to this install rather than to a policy — bot account, language, theme, backups, the spam feed, User
History, and test mode with its duration. Chat messages and the Known Patterns lists are not in
configs.json, so no profile carries them.
Import Profile... reads a file from anywhere, copies it into the Profiles folder so you can come
back to it, and then applies it the way picking a built-in profile does: what the file names is written,
everything else is left where it is.
The same filter runs in both directions, so a profile file that has had a webhook URL written into it
by hand still cannot put one into your settings — the key is dropped on the way in, not merely left
out on the way out. A file that is not a profile is refused rather than half-applied, and keys from a
newer version than yours are counted and ignored instead of throwing.
Switching from a deck. A Stream Deck key or a Streamer.bot Deck button can switch profiles
mid-stream without this window, see Deck buttons. The Profiles dialog lists the names
to put on a key under Switch From A Deck.
Options
☰ → Options... opens a window of its own with three tabs. Save keeps what you typed into its boxes and Cancel puts them back; the buttons on the tabs act at once.
- Test Mode starts or ends test mode and holds Test Duration (Minutes) and the Test Notice, the chat message posted instead of the real one while it runs.
- Notices lists every notice closed with its ✕, in the words it last said. Would be shown right now marks the ones that apply at this moment, Does not apply right now the others. Show Again brings one back at once, Show All Again all of them. Ignore Betas and Home's Start Here are listed here too.
- OBS Dock sets up the OBS dock: Set Up OBS Dock writes its page and puts the address on the clipboard, and the steps beside it say where it goes in OBS.
| Test Mode |
Notices |
OBS Dock |
 |
 |
 |
Test mode
Switched on from the ☰ menu, from Home or under ☰ → Options... → Test Mode. While it runs, nothing is deleted, timed out or banned — every module posts what it would have done instead, so you can point a real chat at your settings without anybody being punished for helping you test them. Not even the chat modes come on. It ends on its own after the Test Duration set under ☰ → Options..., five minutes by default, and the notice strip counts it down.
Easy & Expert mode
| Easy Mode |
Expert Mode |
 |
 |
Easy Mode is active by default and meant for anyone new to TwitchSentry or to this kind of tool. It shows simplified settings with a sensitivity slider, from Very relaxed to Very strict, and a line under it that says what each step does. The Spam Learner's slider runs from Very cautious to Very eager instead.
Expert mode, also in the ☰ menu, shows the individual numbers the slider moves for you, and the rows most channels never touch: the Spam Learner's tuning, the pattern and conversation lists on Known Patterns, the statistics columns on Suggestions and the scanner limits on Check Link. While it is off, a page that hides rows says how many under its last card, and how many of them differ from the default. A row behind a slider counts as changed only when it differs from what the slider's step sets, and lists never count, because the feed and the Learner keep filling them. A switch's controls N settings counts only the rows the current mode shows. In expert mode the slider gains a Custom step for your own numbers, and the window remembers them when you move away from it, as long as you have pressed Save once.
Custom only appears while expert mode is on: the rows it keeps are the expert rows, so there is nothing to tune without them, and with expert mode off the slider ends at its fifth step. A slider that is already sitting on Custom keeps the stop either way — switching expert mode off never drops a preset column over numbers you tuned yourself.
Setup
General Settings

Behaviour shared by every module: whether to speak through your bot account, whether to reply in chat and whether as /me (Send As Action), whether a message may refer to a viewer by their pronouns, whether the viewers of other channels in a Shared Chat session are left alone (Ignore Shared Chat, on), and whether moderators may use the list commands in chat (Allow Chat Commands, on) or by whisper (Allow Whisper Commands, off).
Default Action is what the Message Filter, the Link Filter and Spam Scoring do with a message that breaks a rule: delete it, time the viewer out for Timeout Duration, or ban them. It is one choice for all three; Raid Protection has its own, on its Detection tab.
Then the exemptions — followers, subscribers, VIPs, named viewers and Streamer.bot groups — which every module that acts on a viewer honours; Voting has exemptions of its own, and Hate Raid Protection does not spare followers. Followers are read from Twitch when Streamer.bot starts and kept in Cache/followers.txt; a new follow counts the moment it arrives unless Follow Wave Protection takes the account for a bot, and an unfollow drops out at the next start. Trusted Users are not exempt, but the filters always treat them as regulars. Test mode's duration and wording are under ☰ → Options... → Test Mode, the whitelist and Always Allowed on the Link Filter page.
User lists as Streamer.bot groups
Four user lists are also kept as groups in Streamer.bot (Settings > Groups), where your other actions can read them:
| List |
Streamer.bot group |
| General Settings → Exemptions: 'Exclude Single Users' |
TwitchSentry Excluded |
| General Settings → Exemptions: 'Trusted Users' |
TwitchSentry Trusted |
| Raid Protection → Raid Window: 'Trusted Raiders' |
TwitchSentry Trusted Raiders |
| Voting → Exemptions: 'Excluded Users' |
TwitchSentry Vote Excluded |
- The list decides. A name added to or removed from a list, in the window or with a chat command, is added to or removed from its group. Nothing travels the other way on its own.
- A group changed in Streamer.bot is asked about. The next time the settings window opens it shows what differs and lets you choose per list: keep TwitchSentry's list (the group is made to match) or take the group's list (the list is changed and saved). Left undecided, nothing changes and the question comes back.
- A lost settings file empties nothing. While
configs.json is missing or does not hold a list, the modules go by the group instead, and the window offers the group's names back.
- Streamer.bot only takes viewers it has already seen into a group. A name it does not know yet stays on the list, counts there as always, and joins the group once that viewer has been in your chat.
Chat Bot badge (optional)
Twitch gives its Chat Bot badge to messages a bot account posts through a Twitch application, never to the broadcaster's own account and never to a message posted the usual way. With an application of your own, every chat message a module writes goes out that way: the same bot account, the same words, with the badge beside the name. They all go through one action, [TS] - Chat. If Twitch refuses, the message still goes out as before, only without the badge, and the Status Log says why; a setup Twitch keeps refusing is left alone for ten minutes, or until you save the settings, so it never slows the chat down. Send As Action does not come along: Twitch's API takes plain text, so a message with the badge is never in italics.
You need a second Twitch account as your bot, signed in to Streamer.bot as its bot account, and that account has to be a moderator in your channel (/mod <bot name>).
Registering the application, in the Twitch Developer Console:
- Sign in with any account of yours (Twitch wants two-factor authentication on it) and choose Register Your Application.
- Name: anything Twitch accepts, for example YourChannel Sentry (names are unique across Twitch). OAuth Redirect URLs:
http://localhost, exactly so: no slash at the end, no port, not https. Twitch compares it letter for letter, and anything else ends in redirect_mismatch when you authorise the bot. Category: Chat Bot. Client Type: Confidential, the only kind that gets a secret. Then choose Create.
- Choose Manage beside the new application. Copy the Client ID, then choose New Secret and copy the secret. Twitch shows it only this once, and a new secret replaces the old one at once.
In TwitchSentry, on General Settings under Chat Bot Badge:
- Paste both into Client ID and Client Secret (the secret is covered like the webhooks).
- In your browser, sign in to Twitch as the bot account, not as yourself, then choose Authorise The Bot Account. A reminder names the bot account first, because Twitch asks whichever account the browser is signed in with. Twitch then names the account about to grant the permissions user:bot and user:write:chat; choose Authorize. The page it lands on afterwards does not load, which is expected: close it. Authorised it as the wrong account? Authorise again as the bot account, which is all it takes. To take the wrong permission back, open twitch.tv/settings/connections signed in as that account and choose Disconnect beside your application under Other Connections.
- Choose Send A Test Message. It posts one message through the application the way every module does, whether the badge is switched on or not and before anything is saved, and the line beside the button says what Twitch answered: that the message carries the badge, or what is missing (a valid secret, the permission, moderator status, a bot account).
- Switch on Use The Chat Bot Badge and save.
The notice strip speaks up when the badge is on but Client ID or Client Secret is empty, when Use Bot Account is off (Twitch never badges your own account), and when Send As Action is on.
Command Replies
The second tab of General Settings.

What TwitchSentry answers when a moderator uses a chat command: confirmations, what !tsundo says, rejections and replies to input it could not read. The placeholders each reply accepts are listed under its box.
Notifications
Five tabs: Discord, Stoat and GameVox post to channels through webhooks (Discord also through a bot of your own), ntfy sends a push notification to a phone or a browser, Windows shows a notification on this PC. Each tab has its own main switch, at the right of the band at the top while the tab is open; a tab switched off is dimmed and carries a ○ beside its name, as a switched-off module does in the sidebar. Every alert has a switch on each of them, so you decide per platform what it hears: only the bans on your phone, say, and everything in Discord.
Every webhook and topic field takes more than one URL, one per line, and each of them gets every alert. All alerts, from every module and for every platform, go through one queue in the Notifications action, which keeps a raid from spending a platform's rate limit on thirty separate requests: what is queued for the same place goes out together, even while posts to other platforms wait between them.
Discord
One switch per thing that can happen, not per module, grouped by where the alert comes from.
Chat Moderation covers the Message Filter, the Link Filter, Spam Scoring and Voting; every other module
has a group of its own, the Word Filter included, so its removals do not ride on the Chat Moderation
switches.
On Stream End (under Stream Summary Notify) sends one summary as the stream ends, whether or not
Offline Protection is on: how long the stream ran, how many messages were
deleted, viewers timed out, banned, blocked or warned, which modules did it, what Twitch refused, what
the spam feed's patterns did, and whether test mode was on. A stream with nothing to do says so in one
line. On New Feed Patterns (under Spam Feed Notify) reports new detection patterns from the
spam feed, and each one that waits for you, with the messages it would have caught.
On the Windows tab both start switched on.
Every alert says what happened in one word, the same in every module: DELETED, TIMEOUT,
BANNED, WARNED, RESTRICTED, BLOCKED and so on, under a title that names the module the
way the window does (Spam Scoring — Action Taken). The evidence is a bulleted Why — Account is
12d old, under the 30d minimum, 78% capital letters — rather than a comma-run of tokens. The
tokens stay in the action log and the Streamer.bot log, where they are the more useful form.
A single alert goes out immediately; a burst arrives as one message carrying up to ten of them, from
whichever modules raised them.

Discord is off by default. Of the alert switches under it, all start on except On Held Messages Allowed, On Twitch Sync Changes, On Permit Granted, On Permit Expired, On Config Changes and On Undo. The alerts go out through webhooks, through a bot of your own, or both: the Discord Webhook card has Post Through Webhooks, the Discord Bot card Use The Bot, so either way can be switched off without emptying its fields. A pasted webhook is covered with dots straight away, so the window is safe to show on stream; the eye beside it uncovers it.
Two alerts as Discord shows them:

Into a forum: a webhook into a forum channel works too. Discord takes a post there only into a thread, so
TwitchSentry starts one for each module with its first alert, named as the module's page in the window
(Spam Scoring, Raid Protection, Hate Raid Protection …), and from then on that module's alerts go into
its thread. A burst is only bundled within one module there. The threads are remembered in
Cache/webhook-threads.json, under the webhook's id and never its token; delete a thread in Discord and the next
alert starts a new one. Webhooks into ordinary channels and into forums can share the field, one per line.
Send A Test Message starts a thread of its own there, TwitchSentry Test.
Creating a Discord webhook:
- Right-click the channel you want
- Edit Channel → Integrations
- Create Webhook
- Give it a name and a logo if you like
- Copy Webhook URL
Send A Test Message, under Test Message at the bottom of the page, posts one message to every webhook in
the box, under the display name and avatar set there, and with Use The Bot on and a token set, through the
bot to each of its channels, whether Discord is switched on or not and without saving first. The line beside the
button says whether Discord took it, and if not, what Discord answered: 404 Unknown Webhook is a webhook that
was deleted in Discord, 401 Invalid Webhook Token a URL that lost part of itself on the way in. An answer
ending in (bot) came from the bot's side.
When Twitch says no: an alert can read TIMEOUT REFUSED rather than TIMEOUT. Twitch answers every deletion, timeout, ban and warning with a yes or a no, and a no is reported rather than swallowed: the viewer was not touched, nothing went into the undo trail and nothing was said in chat, so the alert is the only record. The Status Log page carries the reason — usually a target Twitch will not let a bot touch, a message somebody else has already removed, or a missing scope on the Streamer.bot Twitch account.
How the alerts look in Discord: under Webhook Appearance on the Discord Webhook card there are two more fields, Display Name and Avatar URL. Discord names a new webhook itself and that name says nothing about what is posting, so these ship as TwitchSentry-Log and the TwitchSentry logo and ride along with every alert. Empty either box and that override is not sent at all, and whatever the webhook carries in Discord shows through instead; that is the way back. Discord refuses a display name over 80 characters, or one containing discord or clyde, and refuses the whole post along with it, so TwitchSentry drops such a name rather than lose the alert — and the window warns you when you save one.
Discord bot (optional)
A bot of your own does two things a webhook cannot. It posts the alerts itself, under its own name and
picture, to the channels and forums listed under Bot Channels & Forums, with the webhooks or instead of them. And it changes a
forum thread's tags at any time, where a webhook can name them only when it starts the thread. With a bot set
up, each module's thread shows its latest action as a tag, in the bot's own forums and in those of the webhooks,
so the forum list tells you at a glance what happened last where. The bot adds the tags a forum is missing
itself, thirteen in all:
| Tag |
What it stands for |
| 🔨 BANNED |
a ban |
| ⏱️ TIMEOUT |
a timeout |
| 🗑️ DELETED |
a deleted message, a nuke |
| ⚠️ WARNED |
a warning or final warning |
| 🔒 RESTRICTED |
an account put on Twitch's restricted list |
| ⛔ BLOCKED |
a blocked account or message, a denied AutoMod message |
| ✅ ALLOWED |
an allowed AutoMod message, a permit granted |
| 🛡️ ACTIVE |
armed, chat modes on, Shield Mode on, a lockdown |
| 🔓 LIFTED |
chat modes or Shield Mode lifted, a permit ended |
| 📝 REPORTED |
Report Only, a malicious or suspicious link, an unban request |
| ↩️ UNDONE |
taken back with !tsundo, an unban |
| ❌ REFUSED |
Twitch said no |
| ⚙️ CHANGED |
a list or setting changed from chat, learned patterns applied |
Only these thirteen are swapped on a thread; tags your moderators set by hand stay, unless the thread already
carries Discord's five, when the oldest makes room. A forum takes at most 20
tags, so if yours is full, the missing one is left out and the log says so. An alert undone with !tsundo is
posted into the thread of the module that acted, with or without a bot.
Bot Channels & Forums takes one text channel or forum per line: its link (right-click it → Copy Link, which
gives https://discord.com/channels/<server>/<channel>) or its ID (with Developer Mode on under User Settings →
Advanced, right-click it → Copy Channel ID). The bot tells the two apart by itself: in a text channel it posts
the alerts as they come; in a forum it keeps one thread per module, as a webhook does, and starts each with its tag
already set. A channel that gets the alerts from a webhook and from the bot gets every alert twice, so give each
channel one or the other. Leave Bot Channels & Forums empty and the bot only tags the threads in the webhooks'
forums.
Making the bot. Nothing is installed and nothing costs money: a Discord bot is an application with a few
settings in Discord's Developer Portal, and TwitchSentry only needs its token. You need a Discord account and
the Manage Server permission on the server the alerts go to. It takes about five minutes:
- Create the application. Open the Discord Developer Portal
and sign in with your Discord account. Choose New Application (top right), name it, for example
TwitchSentry, tick the box that accepts Discord's developer terms and choose Create. The application's
name is only for you; the name the alerts show comes in the next step.
- Give the bot its name and picture. Open Bot in the left sidebar. Username and Icon at the
top are what every alert the bot posts shows, so set them as you like and choose Save Changes. Leave the
Privileged Gateway Intents further down off: TwitchSentry never keeps a connection to Discord open and only
asks Discord's API when it posts or tags, which is also why the bot always shows as offline in your member
list.
- Copy the token. Still on Bot, under Token, choose Reset Token and confirm (Discord may ask
for your password or two-factor code), then Copy. Discord shows the token only this once; if you lose
it, reset it again. A reset ends the old token at once, so paste the new one into TwitchSentry. Treat
it like a password: whoever has it can post as your bot, so never show it on stream or paste it into a chat.
- Choose what the bot may do. Open Installation in the left sidebar. Under Installation Contexts,
keep only Guild Install and untick User Install. Under Install Link, choose Discord Provided
Link. Under Default Install Settings, add the scope bot to Guild Install; a Permissions list
appears below it. Pick View Channels, Send Messages, Send Messages in Threads, Embed Links,
Manage Threads and Manage Channels, and choose Save Changes.
- Add it to your server. Copy the link under Install Link and open it in your browser. Pick your server,
choose Continue, look over the permissions and choose Authorize. The bot joins your member list,
shown as offline.
- Keep it to yourself (recommended). As long as the install link exists and Public Bot is on, anybody who
gets hold of the link can add your bot to a server of theirs. It would post nothing there, because
TwitchSentry only posts to the channels you list, but there is no reason to allow it. Back on
Installation, set Install Link to None and save, then on Bot switch Public Bot off and
save. Discord refuses to make a bot private while it still has an install link, which is why the link goes
first. The bot stays on your server; to add it to another one later, choose Discord Provided Link again
for as long as you need it.
- Limit it to its channels (optional). The bot now holds those permissions on the whole server, through
the role Discord made for it. If you would rather it held them only where it posts, take them off that role
under Server Settings → Roles and grant them on each channel or forum alone: the channel's Edit Channel →
Permissions, add the bot or its role, and allow the same permissions there.
- Collect the channels. For each text channel or forum the bot should post to, right-click it and choose
Copy Link, as described under Bot Channels & Forums above.
What each permission is for: View Channels lets the bot see a channel and its threads, Send Messages
lets it post to a channel and start a thread in a forum, Send Messages in Threads lets it post into a forum
thread, Embed Links lets its alerts show as embeds, Manage Threads lets it set a thread's tags, and
Manage Channels lets it add the tags a forum is missing. If you create the thirteen tags in the forum
yourself, with exactly these names, the bot does without Manage Channels; a bot that only tags the threads of
the webhooks does without Send Messages, Send Messages in Threads and Embed Links.
In TwitchSentry, on the Discord tab under Discord Bot: leave Use The Bot on, paste the token into
Bot Token (it is covered like the webhooks), add the channels and forums to Bot Channels & Forums, leave Tag Forum Threads
With The Latest Action on and choose Check The Bot. The line beside the button names the bot and says
whether it can see its channels and those of the webhooks above, or what Discord answered instead. Send A
Test Message at the bottom of the page then posts through the bot as well. Save, and the next alert goes out
through the bot too. To post through the bot alone, switch Post Through Webhooks off on the Discord
Webhook card; to keep the token but leave the bot unused, switch Use The Bot off.
When Check The Bot does not say all is well:
- Discord did not accept the bot token: the token is mistyped, cut short or has been reset since. Reset it on
Bot in the Developer Portal and paste the new one.
- It cannot see some of the channels above: the bot is not on that channel's server, or the channel shuts it
out. Private channels, and channels in a category with permissions of its own, need the bot or its role added
under Edit Channel → Permissions with View Channels allowed.
- It has no channel of its own yet, and none of the webhooks above posts to a forum: the bot is fine, but has
nothing to do. Add a channel or forum to Bot Channels & Forums, or point a webhook at a forum.
- The check is happy but no alert arrives: the bot can see the channel but not post in it. Allow Send
Messages, Send Messages in Threads and Embed Links there; the Status Log shows what Discord answered,
usually Missing Permissions.
Stoat

The same alerts as on the Discord tab, each with a switch of its own for Stoat, starting as the
Discord ones do. Stoat's messages have no fields, so an alert arrives as one block: the title, then
User, Action and the details line by line, with the Why as a list, and last the footer with the
date and time the alert came in on this PC, since Stoat shows no timestamp of an embed's own. A burst goes out as one
message of up to five alerts, as long as their text stays within Stoat's 2000 characters.
Creating a Stoat webhook: open the channel's settings, go to Webhooks, Create Webhook, give it a
name and copy the webhook URL. Display Name and Avatar URL work as on the Discord tab; Stoat takes a
name of up to 32 characters, and the window warns you when you save a longer one.
GameVox

The same alerts again, with switches of their own for GameVox. An alert looks as it does in
Discord, except that the date and time it came in on this PC are in its footer, since GameVox shows no timestamp of an
embed's own. GameVox shows every post under the webhook's own name and picture, whatever a post asks for, so
this tab has no name or picture to set. GameVox may only show a new post once the page is reloaded.
Creating a GameVox webhook: open the channel's settings, go to Webhooks, enter a name and press
Create. Copy the URL straight away: GameVox shows it only once.
ntfy

ntfy delivers a push notification to the ntfy app on a phone (Android or iOS) or to a
browser tab, without an account. You send to a topic, and every device subscribed to it shows the alert. The
same alerts as on the Discord tab, each with a switch of its own for ntfy, starting as the Discord ones
do. A push shows the alert's title, with the action's emoji in front of it (🔨 a ban, ⏱️ a timeout, 🚨 a raid,
a follow wave or a lockdown, otherwise the same as the Discord forum tags), and below it User, Action and the details line by line. A tap on it
opens your channel's mod view. Alerts that arrive together go out as one push, TwitchSentry — 3 alerts, as long
as they fit into ntfy's 4096 bytes.
Every alert has a priority, which the ntfy app uses to decide how loud it is:
| Priority |
Alerts |
| Max |
Hate Raid Protection's lockdowns |
| High |
bans, Raid Protection or Follow Wave Protection armed, Shield Mode, malicious links, viewer spikes |
| Default |
timeouts, nukes, escalated warnings, restricted users, unban requests, suspicious links, listed accounts of the hate raid lists |
| Low |
all the others: deletions, Word Filter hits, warnings, Silent Bots, Shared Bot List bans and so on |
| Min |
Twitch sync changes, held messages allowed, permits granted and expired |
The app plays a sound from Default up and shows Low and Min silently. Priorities To Send picks which of them
reach the phone at all, whatever their switches say:
| Priorities To Send |
What arrives |
| All Alerts |
every alert whose switch is on |
| Low, Default, High And Max |
all but the Min ones |
| Default, High And Max (With Sound) |
only the alerts the app makes a sound for |
| High And Max |
bans, raids and follow waves, Shield Mode, malicious links, viewer spikes and lockdowns |
| Max Only (Lockdowns) |
Hate Raid Protection's lockdowns |
Each switch on the tab shows its priority on the right, and one whose priority is not picked is crossed out: it
keeps its setting, but sends nothing until that priority is picked again. The line under Priorities To Send
counts how many alerts go out, how many are switched off and how many are crossed out.
Setting up a topic: install the ntfy app on your phone (Google Play, F-Droid or the App Store), choose Make
A New Topic on this tab and save. The button writes an ntfy.sh topic with a name nobody guesses into ntfy
Topic URLs and puts that name on the clipboard; in the app, tap +, paste the name and choose Subscribe. Then Send A Test
Message. In a browser, open ntfy.sh/app and subscribe the same way. On ntfy.sh a topic
is its own password: anyone who knows its name can read it, so the window warns you about a short one. A server
of your own works too: put its address in ntfy Topic URLs (https://ntfy.example.com/your-topic).
Access Token stays empty for such an open topic. You only need a token for a topic that is protected, so that
only you can read and send to it: on ntfy.sh that is a reserved topic, which is part of ntfy's paid plans; on a
server of your own, any topic the server does not open to everyone. The token goes to every topic URL in the
box, so with a token, list topics of that one server only.
Getting an access token on ntfy.sh:
- Sign up or sign in at ntfy.sh/login.
- Reserve the topic: in the web app's Settings, under Reserved topics, choose Add reserved topic,
enter the topic's name (the part after
ntfy.sh/) and set the access to Only I can publish and subscribe.
- Open Account in the side menu. Under Access tokens, choose Create access token, give it a label such
as TwitchSentry, set Access token expires in to Token never expires (or a date you will remember to
renew it by) and choose Create token.
- The new token,
tk_ and a string of letters and digits, appears in the list. Copy it, paste it into
Access Token on this tab, save and Send A Test Message. A token can be deleted on the same page at any
time, which locks TwitchSentry out until you paste a new one.
- The topic now needs your login to be read, so the app asks for your ntfy.sh username and password when you
subscribe to it. A phone that subscribed earlier gets them under the app's Settings → Manage users, with
https://ntfy.sh as the service URL.
On a server of your own, an administrator makes a user for TwitchSentry, allows it the topic and gives it a
token, on the server's command line:
ntfy user add twitchsentry
ntfy access twitchsentry your-topic write-only
ntfy token add --label=TwitchSentry twitchsentry
The last command prints the tk_... token to paste into Access Token; the server's web app makes one under
Account → Access tokens as well, as above. write-only is all TwitchSentry needs, since it only sends; your
phone reads with a user of its own that has read-only or read-write on the topic. Instead of a token, the
user's name and password work too, written as twitchsentry:the-password.
ntfy.sh's limits: for free, ntfy.sh delivers 250 messages a day. If it turns an alert away for its limits,
TwitchSentry leaves that server alone for a while (ten minutes after the daily limit) and drops what comes in
meanwhile, without holding up Discord or the other platforms; the Status Log says so. Fewer Priorities To Send,
High And Max for instance, keep a busy chat from using the messages up.
Windows

A small Windows notification in the corner of the screen, kept afterwards in Windows' notification
centre. It works while the settings window is closed, and carries TwitchSentry's icon once the window
has been opened at least once. The tab's switch in the band at the top, on by default, turns all of them on
or off; below it is one switch per kind:
| Switch |
Default |
When |
| On New Releases |
on |
A new TwitchSentry release is out, or a newer translation of the window's or the chat's language was installed. Once per release and per language version; TwitchSentry looks for a release when Streamer.bot starts and each time the settings window opens, and for languages every ten minutes, installing them on its own. |
| On Deck Button Actions |
off |
A deck button just did something: switched a profile, a module or an exemption, test mode, Raid Protection, an undo. |
| On Deck Button Problems |
on |
A deck button could not do what it was asked, and why: a profile that no longer exists, a name that matches nothing, a configs.json that cannot be read. |
Below those come the same switches as on the Discord tab, group for group and all off until
you switch them on, except On Silent Bots Found, On New Feed Patterns and On Stream End, which start on. They do not need Discord at all, so the alerts can be on screen instead of, or as
well as, in a Discord channel. What one module reports within a few seconds arrives as one notification
(Raid Protection — Action Taken (5), with the first viewers named), so a raid does not bury the screen.
Show A Test Notification sends one straight away, whatever is switched on. If nothing appears,
Windows is holding it back: check Do Not Disturb (Focus Assist) and Settings → System →
Notifications, where Streamer.bot has to be allowed to send notifications.

Chat
Message Filter
| Easy Mode |
Expert Mode |
 |
 |
Three tabs: Checks, Chat Modes and Messages. The checks look at how someone is chatting rather than at particular words: account age, ALL CAPS, repeated characters, emote spam, posting too fast or repeating yourself, code injection, and, if you switch them on, repeated words, symbol spam, walls of text, mass mentions, ASCII art and Zalgo text.
No single one of those is proof of anything on its own — people shout, people spam emotes when something good happens — so with Require Two Signals on, a viewer with at least Known After (15) messages here is only acted on when two of them show up together, while anyone with fewer can be acted on for any single one. The count starts over when Streamer.bot restarts; Trusted Users always count as regulars. Being new to Twitch is a risk factor that makes whatever else the message tripped count for more, not a finding by itself, unless Act On Account Age Alone under Expert Tuning — Scoring is on: then, from the Strict step of the slider up, a young account can be acted on with nothing else against it. Someone with a long history in your chat needs more evidence than a stranger does.
Each check has its own switch and there is no module-wide one: unticking every check is what silences it.
Repetition Spam holds two checks. Repeated characters (aaaaaaa, !!!!!!!, NOOOOOO) has its own switch, on by default. A stretched letter counts once towards the caps ratio, so one held-down key is one signal, not two. Repeated words catches the same word or a phrase of up to three words back to back (lol lol lol lol lol); a wall of emotes is left to the emote check. Repeated words are off by default.
Symbol Spam, Long Messages and Mass Mentions are scored like caps and emotes, so a regular's single hit is discounted and Require Two Signals applies. All three are off by default. Symbols measure the share of punctuation and symbols in a message, leaving out emoji, emotes and whatever the ASCII art check counts; Long Messages flags anything over Max. Characters (300); Mass Mentions counts different @names (5).
Code Injection is scored like caps and emotes, on by default: such a message is usually sent once rather than spammed, so a regular's single hit is discounted and Require Two Signals applies. Twitch only ever shows a message, but a chat overlay, a TTS voice or a Streamer.bot action that hands %rawInput% on to a program, a file path or a web page can run it. The check knows the usual shapes of that: HTML and script tags (<script>, <img>), TTS tags (<break>, <prosody>), shell and PowerShell commands that break out of the one they were handed to (; rm -rf, powershell -enc), template lookups like Log4Shell's ${jndi:…}, SQL (' OR '1'='1), and file paths that climb out of their folder (../../) or point at another computer (\\server\share). A message with one of them adds Code Injection Score Hit (1.5) to its score; the reply is Code Injection Flag. It does not make an overlay or an action safe, which only escaping the text there can, and in a chat that talks about programming it also catches ordinary code.
ASCII Art and Zalgo Text sit in the Flood card and hang off its switch: pictures and stacked marks are mostly spammed, so with the Flood check off neither of them does anything.
ASCII Art is off by default. Switched on, it removes pictures drawn out of Braille dots (⣿⠄) or block and box characters (█▀═), which raids, bot waves and ordinary viewers all paste into chat. It counts those characters, and a message with at least Min. Art Characters of them (20, in Expert mode) is acted on the way Default Action on General Settings says; the reply is ASCII Art Flag on the page's Messages tab. Unlike the other checks it is a rule rather than a score, so Require Two Signals and the regular's discount do not apply and a regular's picture goes too. Exempted viewers and anyone with a permit stay exempt.
Zalgo Text works like ASCII art: a rule rather than a score, acting on regulars too, off by default. Writing never needs more than two marks on one letter, so only the third mark onwards is counted, and Min. Stacked Marks (10) of them is Zalgo text.
In expert mode every scored check's card also carries its Score Hit, the weight that check adds to a message's score. What they add up against is under Expert Tuning — Scoring at the bottom of the tab: Require Two Signals, how many messages make a viewer known or a regular, and the threshold.
Chat Modes, the second tab, deals with the whole chat rather than one viewer. When the Message Filter acts on enough different people inside the same window, a Twitch chat mode is switched on for everyone and lifted again on its own. Its main switch, Switch Chat Modes On Automatically (off by default), sits at the right of the band at the top while the tab is open; while it is off, the tab's name is dimmed with a ○. The tab reads top to bottom:
- When It Starts: a sentence that says in plain words what the numbers add up to, then how many Violations, from at least how many different Viewers, Within how many seconds.
- Modes It May Use: Slow Mode with its Seconds Between Messages and Always Add Slow Mode, Follower-Only with how long someone must have followed, Emote-Only and Sub-Only. A mode switched off here is skipped.
- How Long It Stays On: Lift After, counted from when the mode went on, and started over each time the wave reaches the numbers under When It Starts again.
- What Happens: a table with one row per kind of wave, showing which mode comes first and, with Step Up If The Wave Continues on, what is added if the wave keeps going. It redraws as you tick and names the modes it skips.

The third tab, Messages, holds what the Message Filter says in chat, including the two chat mode notices. A timeout or ban for anything but flooding is announced with the wording on Spam Scoring's Messages tab.
Link Filter

Always on. A link from a viewer who is not exempt and holds no permit is removed the way Default Action on General Settings says, unless this page allows it. Two tabs: Settings and Messages.
Whitelisted Domains, under Allowed Domains, is your own list of addresses that always pass. A domain on its own is an exact match: youtube.com allows that address and nothing after it. An entry with a path covers everything below it, on whole path segments: twitch.tv/yourname allows your channel and its clips, but not twitch.tv/yournamefan. A trailing /* allows anything after the part before it. *.youtube.com covers youtube.com itself and every subdomain, again without anything after them; *.youtube.com/* allows all of it.
Always Allowed, the card below it, is the shortcut for the entry most people write first: switches that let your own clips and videos through for everybody, without a permit and without a whitelist line. The channel names are read from whichever accounts Streamer.bot is signed in to, so a rename follows along. Only your Twitch channel page is allowed by default.
The switches come in two groups, because a link can only be checked against your channel when your channel's name is in it:
- Only Your Channel — your Twitch clips (
twitch.tv/yourchannel/clip/…), your Twitch channel page (twitch.tv/yourchannel, and the pages under it), your YouTube channel page (youtube.com/@yourhandle), your Kick clips and your Kick VODs. The address names your channel, so a clip or video of anybody else's is still judged by the Link Filter. A platform Streamer.bot is not signed in to matches nothing here.
- Any Channel — the same shapes with the channel left open, each on its own switch: Twitch clips (
twitch.tv/anychannel/clip/…, and clips.twitch.tv/… for the same clip by a shorter address), Twitch VOD links (twitch.tv/videos/…, which is what Twitch's own Share button gives for a VOD), YouTube videos, Shorts, live streams and clips, and Kick VOD links (kick.com/video/…). Ticking one allows that kind of link for every channel on the platform, not only yours. Most of these addresses name no channel at all; a clip address always names one, and that switch simply does not read it.
They are not a permit and keep working with Permit switched off.
Check Every Posted Link, the scan of every link with VirusTotal, is on the Check Link page.
Held links. With Twitch's Hold Hyperlinks for Review switched on, a link never reaches chat: Twitch holds it until a moderator answers. TwitchSentry still judges it, whether the AutoMod module is on or off. A link this page would remove is denied in Twitch's moderator queue. It never reached chat, so the account is never timed out or banned for the link alone, whatever Default Action says. The Spam Learner reads the message like any removed one, and Spam Scoring judges it first: spam is denied and the account treated as Default Action says. A link this page allows, a link under a permit and an exempt viewer's link wait for your moderators. TwitchSentry never approves a held link.
Word Filter

Your own list of words and phrases that are not welcome in your chat.
- A word or phrase matches as a whole word, whatever its case and accents:
cheap does not catch cheaper. A * stands for any letters (*cheap*), and an entry written as /pattern/ is a regular expression.
- Catch Disguised Words (on by default) also reads every message with its disguises off: lookalike letters from other alphabets, digits and signs standing in for letters (
h4te, $pam), letters spaced out (h a t e, h.a.t.e) and letters held down (haaaate). Digits stuck on to dodge the list (hate123) do not hide a word either.
- There is no score. A match is acted on whoever sends it, except moderators, the broadcaster and the viewers exempted on General Settings. Page Action (Delete, Timeout or Ban) applies to every entry set to Page Action; Timeout Duration sets the length of every timeout, an entry's own Timeout too. With Twitch Warn on, a deletion is handed over like the other filters'.
- Each entry can be marked Block On Twitch, have its own action, and run out on its own after anything from an hour to 30 days, which is what a spoiler or today's drama wants.
- Twitch's Blocked Terms: Twitch's own list keeps a message out of chat, even while Streamer.bot is closed, and holds it for your moderators. While Streamer.bot runs, the held message comes to the Word Filter, whether the AutoMod module is on or off, and the entry it matches decides as in chat: Delete denies it in Twitch's moderator queue, a timeout or ban is followed by the denial, and a denial goes to Twitch Warn like a deletion. A message no entry matches (a term that is only on Twitch, for example with Sync With Twitch off) and an exempt viewer's message wait for your moderators; TwitchSentry never approves one. Twitch reports nothing for its private blocked terms, so those messages never reach TwitchSentry. Entries marked Block On Twitch are put on Twitch's list and taken off again when you unmark, remove or let them run out. What a moderator adds on Twitch is taken in; what a moderator deletes there goes from here too if it came from Twitch, and only loses its mark if it was made here. The two lists are compared after every save, every quarter of an hour while chat runs, and at once whenever a term is added to or deleted from Twitch's list. A failed read of Twitch's list never empties either side; an empty list is believed only when the next sync, minutes later, finds it empty too.
!nuke <word or phrase> [seconds] reaches back through the last stretch of chat (60 seconds unless the command says, 600 at most) and removes every matching message, by default with a timeout for each sender. The phrase then stays on the list for Keep Blocking minutes. One !tsundo takes the whole nuke back, !tsundo @name one viewer's part of it.
- The list is never posted in chat:
!bwlist only says how many entries there are, unless it is whispered.
Spam
Spam Scoring
| Easy Mode |
Expert Mode |
 |
 |
This does not judge a message by how many red flags it trips. It asks whether the message is built like an advert. An advert has parts: somewhere to go (Destination), something being sold (Offer), a way to redeem it (Instrument), the random @handle a spam bot signs with (Tag), and wording this channel has seen from spam before (Signature).
One part on its own is a coincidence — plenty of ordinary messages have one. Two parts together is an advert; Require Two Parts holds to that, and the sensitivity slider sets how strong the parts have to be. The one exception is an account with no history here: one decisive part, such as a known spam domain or a strong keyword, is enough. A regular is never acted on without a decisive part.
A link Twitch holds for review (Hold Hyperlinks for Review) is judged the same way, though it never reached chat: an advert is denied in Twitch's moderator queue, the account timed out or banned as Default Action says, and reported to the Shared Bot List like any other. A held message never makes its sender a regular.
Fancy fonts change nothing. Spam is often written in letters from other alphabets that only look Latin: Cherokee (ᏙᏆᎬᎳᎬᎡᏚ), Lisu, Greek, Cyrillic, Canadian syllabics, small capitals, boxed or circled letters, letters with strokes or stacked accents, or plain words padded with invisible characters. Before any list is read, all of that is read back as the letters it shows, and the Spam Learner, Raid Protection, Hate Raid Protection and the Word Filter's Catch Disguised Words read messages the same way. Disguised letters that reveal wording from your lists are deliberate evasion and make that evidence decisive; harmless words in such a font stay harmless. A phrase on your lists also finds its words joined by underscores, and a Telegram bot named next to "tg" or "telegram" in a message selling viewers or followers is a hand-off, the same part of an advert as "add me on Discord".
Conversation Scam is tracked separately, because it is a different animal from the bot that drops one advert and leaves. This account chats with you: it asks how long you have been streaming, says your channel looks a little empty, mentions that a logo or a VTuber model would fix that, and only then tells you it sells exactly that. No single message it sends is spam — the tell is the order. Four stages are tracked per account inside a window (Conversation Window, 45 minutes), they only count moving forwards, and it only acts once an account has walked three of them in order and ended on the offer. Being a familiar face does not buy an exemption here — it raises the bar to all four stages. Sitting in a channel for hours is how these accounts earn their standing in the first place. Detect Conversation Scam is on by default and has its own action, a one-day timeout unless you choose Report Only or Ban. It is still work in progress, so expect the odd false flag.
Bot Wave catches what no single message gives away. A wave of brand-new accounts rotates its wording, so no two messages look alike and none of them need be an advert on its own; what it cannot vary is where it sends people. Within a short window (60 seconds by default) TwitchSentry counts the brand-new chatters whose first message names the same address: a link, a domain written with spaces or dot, an invite link, a Telegram bot. Once five of them share one (more during a raid, scaled with its size), that address counts as a known spam site for everyone still in the window: the messages already posted get the Default Action in one go, with one undo entry for all of them, every further message naming the address goes, and the accounts reach the Shared Bot List with the reason bot_wave. While the Spam Learner is on, an address that is a domain of its own also lands in your spam domains; an invite link, a Telegram bot or a page on a shared host does not. Regulars are never touched, Twitch links and the Link Filter's allowed domains never count, and a friendly raid's greetings name no address. The window, the number of senders and the raid share are in expert mode.
Text Wave catches chat bot tools that post lines from a list, one bought account after the other, seconds or minutes apart: no link, no advert, often a harmless sounding sentence such as "Use the !discord command to connect to our Discord server." What they cannot hide is that different accounts post the very same words. Within a window (10 minutes by default) TwitchSentry counts the accounts that are not regulars here and post the same message word for word, letters in a fancy font read as the letters they show. Once three of them have, those words count as spam for everyone still in the window: the messages already posted get the Default Action in one go, with one undo entry for all of them, every further message with them goes, and the accounts reach the Shared Bot List with the reason text_wave. Regulars are never touched, and words a regular posted in the window never count, so a copypasta your chat started stays alone. Commands, lines under 20 letters or four words and messages of nothing but emotes never count, and for ten minutes after a raid the text wave rests, because raiders paste the same raid message. On by default (Detect Text Waves); the window, the number of senders and the shortest message are in expert mode.
Detect Rotating Accounts (on, with the text wave) covers the tools that run a single account through a list of lines, a few seconds or a minute apart. One account is never a wave, so it asks something else: once an account that is not a regular here has posted at least two different lines, each of them twice or more within the window, those lines count as spam for everyone still in the window and the account's earlier messages get the Default Action. A viewer who asks the same question again repeats one line and never trips it, and channel bots such as Nightbot or StreamElements, whose timers go round the same way, are never counted.
Known Patterns

The actual active rules every module checks against — spam.json, editable in place. Spam domains, keywords, strong keywords, domain endings, custom patterns and voucher-code patterns, plus the four conversation beats the scam detector matches on, and the hand-off phrases and service offers, which count as parts of an advert and decide on their own for an account new to your chat. Add your own here, or approve what the Learner suggests. Easy mode shows the spam domains, the keywords and the hand-off and service lists; strong keywords, domain endings, both pattern lists and the conversation beats are in expert mode.
New entries arrive on their own. When a new viewer-selling site starts circulating, it is added once to the spam feed, and within about a quarter of an hour it shows up in these lists — no new version to import, and no window to open. TwitchSentry looks every ten minutes, and every file it fetches has to match the SHA256 the feed publishes for it, or it is not used. Each entry arrives exactly once: delete one here and it stays deleted. Your own custom patterns and voucher patterns are yours alone. Receive New Entries at the top of the page switches it off; the time of the last look is shown under New Patterns.
New detection arrives the same way. Besides entries, the feed carries detection patterns. A new one first watches for a day: it only notes what it would have caught and changes nothing. Then it arms itself and counts in its part of an advert like any other evidence, never on its own, so a pattern alone never removes a message. With Arm New Patterns Automatically off, a pattern keeps watching until it would have caught 5 messages, then waits for you: the notice at the top of the window and the list under New Patterns show what it would have caught, with Arm and Turn Off beside each pattern. What you choose for a pattern stays as you left it when the feed changes; only a pattern whose wording the feed changes starts watching again. Notifications → On New Feed Patterns reports new patterns and the ones that wait for you.
Share what you found. Share With Other Streamers... on this page, or Share With Others... in the ☰ menu, offers the entries in your lists that TwitchSentry does not have yet: nothing the feed already carries, and nothing a version shipped as a default. Each list is headed with what an entry in it does, and How does this work? above the list explains the rest, including why a conversation stage can show up on its own. Tick the ones worth passing on and it opens a GitHub form with them filled in; you press Submit there yourself, and once an entry holds up it reaches everyone else through the feed. The same dialog shares your saved settings as a profile, or a complete translation file. Nothing is sent from the window, and only the entries go along — never a chat message or a name. A single translated text that reads badly is a ticket rather than a share: Report... in the ☰ menu, A translation.
A shared profile is too long for the link, so it goes onto your clipboard to paste into the form. If Windows will not hand the clipboard over (it happens in Remote Desktop sessions), the form opens anyway and the dialog shows the profile, with Copy Again beside it. Once you submit, the repository checks the profile the way the window checks an import, and if it holds up it is stored on the profiles branch and the ticket is closed. There is no pull request and nobody has to accept it, so it doubles as a backup: download the file from there and put it into Settings/Profiles, on this PC or any other.
Spam Learner

Watches what actually got removed and works out which words, phrases and domain endings keep showing up in it, scoring each candidate by how much more often it appears in spam than in ordinary chat. New finds start as suggestions for you to review; they are promoted into the real rule list only once they have built a track record — either because you approve them, or automatically if Auto Promote Trusted Rules is on.
Sensitivity sets how much evidence that takes, from Very cautious (many different accounts, again and again) to Very eager (the first signs). Normal waits for at least two different accounts and three removed messages. Expert mode shows the seven numbers behind the slider and the rest of the tuning: download caches, caps per run, the clean-chat sample and decay.
Only content violations feed it. The fact that somebody typed too fast tells you nothing about which of their words were spam, so behavioural violations contribute none. On top of that sit an Ignore Terms list, automatic protection for your own account names, a denylist for major brands, and the clean-chat sample described below. Your bot account is never learnt from, and with Ignore Chat Bots on (the default) neither are known chat bots such as Nightbot or StreamElements: their messages stay out of the learning and out of the clean-chat sample.
Reply In Chat (on) posts in chat when the learner writes suggestions or adds rules itself; the wording is on its Messages tab.
Suggestions

Everything the Learner has proposed but not applied. Read the Would hit column first: that is how many messages from your own clean chat log the rule would have matched. Zero is what you want, and anything above zero is never auto-promoted. Users counts how many different people posted it, so one spammer repeating themselves counts once. Expert mode adds the statistics columns, among them Discrim.: how much more often it shows up in spam than in ordinary chat.
Probation means a candidate is still building a record; trusted means it is proven enough to be auto-promoted, if you have turned that on. Approve moves the selected suggestion into your lists on Known Patterns. Clear File wipes the pending list and leaves your active rules alone.
Bots & Raids
Raid Protection
| Easy Mode |
Expert Mode |
 |
 |
Off by default. The same idea as the Message Filter, but stricter, and only armed for a limited window right after an incoming raid. Its Action ships as Delete, so a friendly raid caught by mistake loses only a message, and a raid from a channel on Trusted Raiders never arms it. It adds swarm detection, which spots several different accounts posting near-identical messages at once and checks that line against your spam lists; a link that is not on the Link Filter's whitelist counts as such wording too.
Three tabs: Detection (sensitivity, the Action for a message it catches, what counts as a raid worth stopping and, in expert mode, the raid window, velocity, duplicate and swarm numbers), Chat Modes and Messages.
Chat Modes works like the Message Filter's, with three differences: When It Starts is one switch, As Soon As A Raid Arrives (otherwise the first mode goes on when a raid message crosses the score threshold); Shield Mode has its own card; and everything is lifted when the raid window ends rather than after a set time. With Step Up If The Wave Continues on, the next step comes only when the wave is still going half a minute after the last one. The tab has no switch of its own: it works whenever Raid Protection is on.

Pause Queues, at the bottom of the Chat Modes tab, holds Streamer.bot action queues while a harmful raid is being stopped, so its spam never
reaches text-to-speech or alerts. Tick Pause Queues During A Raid and enter the queue names, one per
line, exactly as Streamer.bot lists them under Action Queues. They are paused the first time a raid
message crosses the score threshold, or when Raid Protection is armed by hand (a deck button, !antiraid
or the panic button); a friendly raid that never crosses it leaves every queue running. When the raid window ends they
run again, with what piled up meanwhile, or without it when Clear Queues On Resume is ticked. A queue
Follow Wave or Hate Raid Protection holds as well stays paused until that module is done too. Only queues TwitchSentry
paused are resumed, and test mode pauses nothing. Never name a queue TwitchSentry's own
actions run in.
By hand: !antiraid (on its own it toggles; on and off say which) or a deck key
arms Raid Protection as an incoming raid does, without a raid: the raid window, plus the chat modes,
Shield Mode and paused queues where As Soon As A Raid Arrives, Shield Mode On Raid and Pause Queues
During A Raid are on. !antiraid on while armed starts the window over without adding a chat mode; off,
or the bare command, lifts what arming put on. Nothing is armed while Raid Protection is switched off.
Hate Raid Protection

Off by default. A hate raid is many accounts arriving at once to post harassment, through a Twitch raid or
simply by typing into chat. Hate Raid Protection watches who writes in your chat for the first time, who follows,
and which messages Twitch's AutoMod holds back, and when it is a hate raid it locks the chat down and lifts the
lockdown again by itself. Three tabs: Detection, Lockdown and Known Hate Accounts.
| Lockdown |
Known Hate Accounts |
 |
 |
Which accounts it looks at: hate raids are run with accounts aged on purpose to get past age checks, so
by default only accounts at least Minimum Account Age (Days) old (365) are looked at; younger ones are
left to the rest of TwitchSentry and to Twitch's Shield Mode. New Accounts Too looks at every account,
freshly made ones included. An account's age is only looked up once enough first-time arrivals come together.
When it is a hate raid: at least First-Time Arrivals (6) within a minute, more after a big Twitch
raid (Share Of A Raid, 10% of the viewers it brought), and two signals, one of them about hate:
several messages AutoMod held back, an account on one of the hate raid lists, Hateful Words (your own,
and the Word Filter's if Use The Word Filter's Words is ticked), several accounts whose names share a stem
(hoss00312, h0ss_0312), several accounts made within one day. The last two describe any bot wave, which
is why they never lock the chat down alone. In a big raid a share of the arrivals has to fit a signal, so a
few accounts that happen to share a creation day in a crowd of hundreds count for nothing. The same line
posted by many accounts is never a signal: that is what a friendly raid looks like. A Twitch raid from a
channel on the hate raid lists, and not on Trusted Raiders, needs no second signal: the lockdown starts as
the raid arrives.
Viewers who have written here before are never counted and never acted on, not even during a lockdown,
whatever they write: only an account writing in your chat for the first time, or following, is an arrival.
A message AutoMod holds back from a regular only counts towards the AutoMod signal. A link Twitch holds for
review (Hold Hyperlinks for Review) does not count at all: Twitch holds every link, hateful or not.
The lockdown: every account of the wave goes into Logs/hateraid-evidence.txt first, with what it
wrote, for a report to Twitch. Then Shield Mode goes on if it is ticked, as it is by default (with the
settings you gave it on Twitch), and
During A Lockdown decides what happens to the wave:
- Ban (the default) bans the wave's accounts, and the channel that raided you when a Twitch raid came
first. A ban takes their messages with it, so the chat is not cleared and everybody else's stays.
- Clear Chat clears the chat and deletes what the wave posts afterwards. Nobody is banned.
- Clear Chat And Block clears the chat, deletes what the wave posts afterwards, and blocks the wave's
accounts and the raiding channel: they can no longer follow, whisper or raid you.
A channel on Raid Protection → Raid Window: 'Trusted Raiders' is never banned or blocked. Accounts arriving
during the lockdown are judged the same way. Bans and blocks go out in rounds of up to 40 accounts, and one
!tsundo lifts one round, so a bigger wave, or accounts that arrive later in the lockdown, take more than
one. The lockdown lifts itself once Quiet Time (10 minutes) has passed without a new account judged part
of the wave (arrivals that fit no signal do not keep it going), and at the latest after Longest Time
(60 minutes), and only lifts what it set: a Shield Mode that was on before stays on.
Chat Modes, on the Lockdown tab: follower-only, sub-only, emote-only and slow mode, whichever you tick, go
on with the lockdown and come off with it. A mode another TwitchSentry module still needs, Raid Protection's
follower-only during the same raid for example, stays on until that module is done too.
Pause Queues, on the Lockdown tab, holds the Streamer.bot action queues you name while the chat is locked
down, so a hate raid never reaches text-to-speech or alerts. They run again when the lockdown lifts, with what
piled up meanwhile, or without it when Clear Queues On Resume is ticked. A queue Raid Protection or Follow Wave
Protection holds as well stays paused until they are done too, and test mode pauses nothing. Never name a queue
TwitchSentry's own actions run in.
Known Hate Accounts: with Use The Lists on (the default),
isdsdataarchive's lists of hate raid participants,
kept in Cache/isds and fetched every six hours, or at once with Fetch Now, which
also shows when they were last fetched and how many accounts they name. An account on them is acted on when it writes, follows or
raids (and, with Check Accounts Sitting In Chat, while it lurks): Action On A Listed Account ships as
Restrict, so only moderators see what it writes; Notify Only, Monitor and Ban are the others. During
a lockdown a listed account gets what During A Lockdown does: it is banned on Ban and blocked on
Clear Chat And Block, while on Clear Chat it still gets Action On A Listed Account. Harassment List
adds the accounts listed for harassment, threats and racism; Hijacked Accounts During A Lockdown adds
hijacked accounts, but only during a lockdown, since their owners are victims too. The lists name real people
as well, which is why the action outside a lockdown ships as Restrict rather than Ban. Twitch gives a name free again once its owner renamed or deleted the account, so an
account made after its name appeared on a list is somebody else and is left alone; the whitelist, greylist
and unban list never count. How to ask for a name to come off a list is on isdsdataarchive's page, linked on About & Links.
Moderators, VIPs, the broadcaster, the bot account and the viewers exempted on General Settings are never
acted on. Followers are not exempt: following first is how a raid gets past follower-only chat.
By hand: !hateraid (on its own it toggles; on and off say which), a deck key or the
OBS dock's Hate Raid Lockdown start the same lockdown without waiting for a burst. Started that way it bans
no raider, and it lifts only by hand or after Longest Time.
Test mode changes nothing on Twitch and says in chat what a lockdown would have done.
The reasons Twitch records with its bans, one for a lockdown and one for a listed account, are on the page's
Messages tab; moderators see them in chat and on the account's card.
Follow Wave Protection
| Easy Mode |
Expert Mode |
 |
 |
Off by default. It counts how many different accounts follow inside Window (Seconds). Only once
Accounts Needed is crossed does it look them up. An account that shows two of the signals below (an empty
profile counts half, at the default sensitivity) is blocked rather than banned: a ban would leave the follow on
your list, a block removes it and keeps the account from following again. While the action is Report Only, it
is only reported, to the Shared Bot List as well.
- Each account in the wave is judged on four things from that one lookup: Young Account, Default
Avatar, Empty Profile and Throwaway Name.
- Age gates the two cosmetic checks. Default Avatar and Empty Profile only count for an account younger than
Young Account (Days) (14): an account three years old with no picture and no bio is somebody who never filled
the form in.
- Report Only is the default, because a block is invisible from the viewer's side: they simply cannot follow,
and nobody tells them why. Every account it blocks is written to
followbot-blocks.txt in the Logs folder,
with the evidence that convicted it, and !tsundo lifts the last one. Open Folder
under Blocked Accounts on the page shows the file in Explorer; a new one starts each day, like the other logs.
- Judge Single Follows Too (off by default) runs the checks on every follow rather than only inside a wave.
- Chat Modes: follower-only, sub-only, emote-only and slow mode, whichever you tick, go on when a wave
crosses the threshold or it is armed by hand, and come off when the wave window ends. Follower-only is the one
that suits a follow wave: its accounts have only just followed. A mode another TwitchSentry module still needs
stays on until that module is done too. Test mode switches none of them.
- Pause Queues holds the Streamer.bot queues you name, your follow alerts for example, while a wave is
going on, and lets them run again when the wave window ends, with what piled up meanwhile or without it when
Clear Queues On Resume is ticked. A queue Raid or Hate Raid Protection holds as well stays paused until both are done.
Test mode pauses nothing, and like on Raid Protection, never name a queue TwitchSentry's own actions run in.
- By hand:
!followwave (on its own it toggles; on and off say which), a deck key or
the OBS dock's Follow Wave Protection button arms it as a wave does, for Stay Armed (Seconds): every follow
meanwhile is judged, with Shield Mode and the paused queues where they are on. !followwave on while armed starts
the window over; off, or the bare command, ends it. Nothing is armed while Follow Wave Protection is switched off.
- Its one chat message, Follower Blocked, is on the page's Messages tab and empty by default: the account it blocked is not there to read it.
Silent Bot Protection

Off by default, and on Report Only when switched on. Bot networks keep accounts sitting in thousands
of channels without ever writing, most likely to log the chat for keys or to build up history and aging. They are made in batches: the same day, the
same short name pattern, no picture, no bio.
- It goes through the viewers Streamer.bot lists as present in chat, one round at a time.
- Which Accounts Are Looked Up: only names of exactly Letters In The Name letters followed by
Digits At The End digits (5 and 2). Moderators, the broadcaster and the viewers exempted on General
Settings are skipped. Each account is looked up on Twitch once, at most Lookups Per Round (20) per round.
- When An Account Counts As A Bot: made on one of the Known Bot Days (
2024-05-05), or on the same
day as Same Day Accounts (3) accounts of that name shape, itself among them. Accounts are remembered for
30 days, so a group does not have to sit in chat at the same time. Bare Profiles Only (on) judges
only accounts with Twitch's default picture, no bio, and neither affiliate nor partner.
- Report Only writes each account to the Action Log and
silentbot-finds.txt in the Logs folder (Open Folder
under Found Accounts shows it), and to Discord and a Windows notification if those are on, and reports an account
with a bare profile to the Shared Bot List as Ban does; nothing changes in your chat. Ban bans each account once; one !tsundo lifts the whole
round, !tsundo @name one account, and an account let back in is never banned again by Silent Bot Protection.
- A real viewer can be caught: somebody whose name happens to fit, who never set a picture or a bio, and who
made the account on such a day. Watch Report Only for a while before you switch to Ban.
- Test mode bans nothing and says in chat who would have been banned.
- The reason Twitch records with its bans is on the page's Messages tab; moderators see it in chat and on the
account's card.
Viewbot Alarm
On by default, and it only ever tells you. Viewbot tools open a stream many times over through proxies,
logged out and without chat. Those viewers never write and never show up among the people in chat, so nobody
but Twitch can remove them, and Twitch can penalise a channel for viewbotting it did not buy. The Viewbot
Alarm tab of Silent Bot Protection has its own switch and works with Silent Bot Protection itself on or off.

- On every Present Viewers round while you are live, it compares Twitch's viewer count with the number of
people in chat, as Twitch counts them.
- When It Raises The Alarm: the count rose by Viewers More (25) and by Percent More (50) over the
lowest count within the Window (10 minutes), and chat did not grow along with it. The viewers of a raid in
that window are counted out; a rise that brings people into chat is real growth and left alone.
- Then you get an alert (On Viewer Spikes on the Notifications tabs), a stream marker at that moment (on by
default, not set in test mode) and a line in
viewbot-evidence.txt in the Logs folder, followed by a line for
every count until the spike is over, which is announced as well. Report the channel to Twitch under
Viewership Tampering with those times.
- A place on Twitch's front page or in an embedded player brings logged-out viewers too, which is why the alarm
never acts on its own.
Shared Bot List

On by default. Every TwitchSentry install reports the bots it is sure of to a shared, public list on
GitHub (the botlist branch), and bans what other
channels reported there.
- What is reported, automatically and without a switch: a decisive hit in Spam Scoring (a known spam
domain, a strong keyword, a conversation scam) from a viewer who is not a regular, and the accounts of one of
its bot waves or text waves (
bot_wave, text_wave); a Silent Bot Protection verdict with the
name shape and a bare profile together, made on a known bot day or on the same day as at least Same Day
Accounts accounts of that shape; an account in one of Follow Wave Protection's follow waves; an account in a
Raid Protection swarm whose wording is on a spam list; and an account Hate Raid Protection bans or blocks in a
lockdown because its name shares a stem with others of the wave or it was made within one day of them. Spam Scoring
reports to the Spam Bots list, Silent Bot Protection to Silent Bots, the others to Bot Waves. Silent
Bot Protection and Follow Wave Protection report on Report Only as well. Only the account is sent, never a chat message or which channel reported it. Test mode reports nothing, and lifting a ban or a
timeout on Twitch takes the report back.
- What is banned: an account at least two independent sources reported, two channels or one channel and
isdsdataarchive's public ban lists, from the lists switched on: Spam Bots,
Silent Bots and Bot Waves (all on). Each account is looked up on Twitch first; moderators, VIPs,
partners, affiliates, the bot account and the viewers exempted on General Settings are never banned. Up to
30 accounts are banned per round, so a long list is worked through over hours rather than in one burst.
- These bans are not on the
!tsundo list, so an undo always means a moderator's own
action. To let an account back in, unban it on Twitch: the list never bans it here again.
- Listed by mistake? Anyone can ask for an account to come off the list with Report... in the ☰ menu. It comes
off at once, every install that banned it through the list lifts that ban by itself, and the channels that
reported it are not counted for it again.
- Status says which version of the list was read last and when, how many accounts on it are confirmed,
how many were banned here, how many wait and how many bans were lifted after a removal, and how many
accounts this install reported in the last 30 days.
- Test mode bans and lifts nothing.
- The reason Twitch records with its bans is on the page's Messages tab; moderators see it in chat and on the
account's card.
Offline Protection

Off by default. Nothing in TwitchSentry runs once Streamer.bot is closed, but Twitch keeps chat modes on
by itself. So the moment Twitch reports the stream offline, the modes ticked here go on: Emote-Only
(ticked by default), Sub-Only, Follower-Only with its follow age, Slow Mode with its delay, and
Shield Mode. When the stream goes live again, Lift When The Stream Goes Live switches off exactly
what this page switched on, and nothing else.
- Streamer.bot has to be running when the stream ends.
- On Chat Modes Switched, on every Notifications tab, reports Chat Modes On as the
stream ends and Chat Modes Lifted as it goes live, naming any mode Twitch would not switch.
- What it switched on is remembered across a restart of Streamer.bot, so going live lifts it even then.
- A Shield Mode that was already on is left alone, and never switched off when you go live.
- Leave a mode unticked here if your channel keeps it on all the time: going live switches off whatever
this page switched on.
- Test mode switches nothing on.
Moderation
These are off by default, except Permit.
AutoMod

Off by default. Twitch's own AutoMod holds suspicious messages back and waits for a moderator to approve or deny each one. This answers them for you, by level and by category. Leave AutoMod Categories empty to act on everything Twitch holds, or list only the categories you care about.
A link Twitch holds because Hold Hyperlinks for Review is on is not AutoMod judging words and is not answered here: the Link Filter and Spam Scoring answer it. A message Twitch holds for one of your Blocked Terms goes to the Word Filter while it is switched on. The Whitelist only answers AutoMod misreading a word; it never lets a held link or one of your own Blocked Terms through.
Ban Evasion (off by default) acts on the rating Twitch gives an account it compares with the ones banned here before: likely only, or possible too. Twitch's own Suspicious User Controls can already monitor or restrict such accounts; this adds a restriction or a ban (Evader Action, Restrict by default), or only a report, with the Action Log, your notifications and !tsundo. Each account is acted on once a day. The reason Twitch records with such a ban is on the page's Messages tab.
Restrict Repeat Offenders (off by default) restricts a viewer once AutoMod has denied Denials Before Restricting of their messages within Denial Count Reset (Hours). Handle Restricted Users has it answer the held messages of accounts Twitch restricts as well, the way Restricted User Action says.
Unban requests are always written to the Action Log, and sent wherever On Unban Requests is switched on under Notifications, with what TwitchSentry's logs say about the account beside them: which module acted, when, why and on which message, the last five, earlier days included. This works with the AutoMod module switched off too. The decision is still made in Twitch's moderator view.
Twitch Warn

A warned viewer has to read and click through a warning screen before they can chat again, and Twitch keeps the count in their moderation history. Warning Escalation adds steps on top: warns accumulate, the last one before the threshold is a final warning, and the violation after that becomes a timeout, a ban or a restriction. A restricted viewer stays in chat, but everything they write from then on reaches only the moderators. Counts reset on their own after a quiet period.
Two switches go with it:
- Monitor From The Final Warning flags the viewer as monitored on Twitch along with the final warning. They chat as before, and the moderators see a marker on every message they send, so whoever is watching knows who is one violation away.
- Count Warnings From Moderators counts a warning a moderator gives in Twitch —
/warn, or the warning on the viewer's card — towards the same ladder. A moderator's warning never escalates by itself, and TwitchSentry's own warnings, which Twitch reports the same way, are not counted twice.
A restriction and a monitoring are both lifted with !tsundo, from a deck button, or on the viewer's card in Twitch.
Permit

A time-limited exception for a viewer, so they can post a link without it getting deleted. !permit @user [seconds] grants one, !endpermit @user ends it, !endpermit on its own ends every active permit. Several people can hold one at the same time, each with its own countdown; a permit that is already running is never extended. They are deliberately forgotten on restart.
Max Permit Duration (Seconds) caps whatever a moderator types, with a hard ceiling of 24 hours.
A permit can also come from a deck button or the OBS dock, whose Recent Actions list the links the Link Filter removed in this stream with a Grant Permit beside each; a deck button can end permits early as well.
Viewers can also redeem a permit themselves through Channel Points, if Allow Self-Permit is on. When A Self-Permit Is Redeemed decides what happens next: Grant It Right Away, or Wait For A Deck Button, where the request waits in the OBS dock's Permit list (or for a tsPermit key) until you let it through or refuse it and the points go back. Chat hears Self-Permit Waiting meanwhile. A request nobody answered gives the points back by itself once the next stream goes live, after 12 hours, or a few minutes after its viewer left the chat. Set that reward up with Skip Reward Requests Queue turned off — that is what lets TwitchSentry give the points back when a redemption cannot become a permit. A reward that skips the queue is spent the moment it is redeemed, and Twitch will not allow a refund.
With Accept !permitme on (card Chat Requests), viewers can ask in chat as well: !permitme puts the request on the same Permit list of the OBS dock and on a tsPermit key, where you let it through or refuse it, and a moderator's !permit for that viewer answers it too. It costs nothing, so nothing goes back; asking again while the request waits gets no answer in chat. Chat hears Request Waiting, and Request Turned Down when you refuse it. A moderator's !permit also answers a waiting Channel Points request, and its points are then spent.
Check Link

Two jobs. Anyone can scan a URL on demand with !checklink <url>, and with Check Every Posted Link on (off by default) every link posted in chat is scanned too, on top of the Link Filter's own rules. The automatic scan looks at the whole link, so a file on a shared host such as cdn.discordapp.com is judged by itself rather than by its host. The command takes one link and nothing else: with more, Check Link answers with More Than A Link Message, scans nothing, and the filters judge the message like any other.
It uses VirusTotal (free key) and, for a second opinion, IPQualityScore if you like (Use IPQS); either of the two on its own is enough to scan. IPQS rates a link from 0 to 100; the default threshold is 75, with a stricter one for domains it also reports as recently registered, because brand-new throwaway domains are a common phishing trick. Both thresholds, the scanner limits, the result cache, link defanging and whispered checks are in expert mode.
Voting

!vote @user starts or joins a vote, and if enough different viewers vote within the time window, that person is timed out, or banned if you allow it. When the window runs out, the vote resets. Subscribers and VIPs can be exempted, there are separate exclusion lists for users and Streamer.bot groups, and nobody above VIP can ever be voted out.
Messages
Everything TwitchSentry says in chat is on the Messages tab of the module that says it, with the placeholders each message accepts listed under the box. Its answers to chat commands are on the Command Replies tab of General Settings.
The messages come in English, German, Spanish, French and Brazilian Portuguese: pick the language on the Chat Messages tab of ☰ → Change Language, apart from the window's (Languages). A message you change is yours from then on. Another chat language, or an update of it from GitHub, leaves it as you wrote it; switching lists every message of your own and replaces only the ones you tick. Reset Page puts a page's messages back to the chosen chat language. Names TwitchSentry fills in by itself, such as a module's or a chat mode's, stay in English.
| General Settings → Command Replies |
Message Filter → Messages |
Raid Protection → Messages |
 |
 |
 |
| Link Filter → Messages |
Spam Scoring → Messages |
Spam Learner → Messages |
 |
 |
 |
| AutoMod → Messages |
Twitch Warn → Messages |
Permit → Messages |
 |
 |
 |
| Check Link → Messages |
Voting → Messages |
Word Filter → Messages |
 |
 |
 |
| Follow Wave Protection → Messages |
Hate Raid Protection → Messages |
Silent Bot Protection → Messages |
 |
 |
 |
| Shared Bot List → Messages |
|
|
 |
|
|
Speaking of a viewer by their pronouns
A message about a viewer can use the pronouns they set on pronouns.alejo.io:
{pronoun:he|she|they} holds three forms, written in whatever words your language needs. The first is
used for he/him, the second for she/her, the third for they/them and for anyone whose pronouns are
not known: none set, Any or Other, or the switch off. The switch is Use Viewer Pronouns under
General Settings → Behavior, off by default.
Every other set alejo.io offers (xe/xem, fae/faer, ve/ver, ae/aer, zie/hir, per/per, e/em,
it/its) takes the first form in the viewer's own words: its he, him, his and himself become
theirs, since these pronouns take the same verbs as he. A first form that is not English has no such
word to change, so these viewers get the third form instead.
| In the message |
he/him |
she/her |
they/them, not known |
xe/xem |
it/its |
{pronoun:He is|She is|They are} back |
He is back |
She is back |
They are back |
Xe is back |
It is back |
give {pronoun:him|her|them} a follow |
him |
her |
them |
xem |
it |
{pronoun:his|her|their} clip |
his |
her |
their |
xyr |
its |
{pronoun:er|sie|die Person} ist zurück |
er |
sie |
die Person |
die Person |
die Person |
- It refers to the viewer the message is about:
{user}, or {target} on the Voting page. Every message
with one of those offers the placeholder as a chip under its box. One message may use it several times.
- Twitch keeps no pronouns, so only viewers who set theirs on pronouns.alejo.io are known. Streamer.bot
looks them up (its own Pronouns integration) and TwitchSentry keeps the answer for an hour, so a raid
does not ask once per message. A lookup that takes longer than 2 seconds gives the third form rather
than holding the reply.
- Leave a form out and the last one written stands in for it, so always write all three.
- Nothing is looked up for a message that does not use the placeholder, and a message about nobody in
particular (an escalation notice, say) always takes the third form.
Results
Action Log

Every action involving a viewer on the day picked at the top, filterable by module and by result, with the raw line underneath. Each module brings its own columns, and Details holds whatever a line says that has no column of its own, such as the changes of a Word Filter sync. A removed message has a Message column, so you can judge the removal without opening another page.
Each day starts a new action-log.txt at midnight, and so does every other log in the Logs folder except the Clean Chat Log. The day before is moved aside in the same folder as action-log-2026-11-24.txt and so on, and nothing is deleted; the day list at the top of the page reads them, newest first, the way the Status Log picks a day of the Streamer.bot log. The Home counters still count the older days, the stream summary reads every day a stream ran through, and the Spam Learner's History Lines reach back into them, so a new day does not start its memory from nothing.
User History

What was done to each viewer, kept for good: every ban, timeout, deleted message, warning, restriction and unban, whether TwitchSentry did it or one of your moderators. The Action Log tells you what happened on a day; this page tells you what has happened to a person.
- Nothing is removed. An entry that no longer stands is marked instead: Lifted once the viewer was unbanned (and by whom), Expired once a timeout ran out, Acknowledged once a warning was confirmed, Invalid when you set it aside yourself.
- Two columns can be changed, and a change is saved at once. Untick Counts for an entry that was a mistake, and write into Note what a later reader should know. The entry itself stays as it was written.
- Reset Viewer... sets the picked viewer back to 0, for someone who has earned a fresh start. Nothing is deleted: their entries move to
Settings/user-history.bak and stay there, the list keeps a line saying when it happened and how many entries moved, and their Streamer.bot user variables count from 0 again.
- The history follows the viewer's ID, so it stays with them through a change of name. Each time the stream goes live the names are compared with Twitch; the list then shows who used to be called what, and how often they have renamed. Search finds a viewer under an earlier name too.
- TwitchSentry's own actions carry the module that took them. What a moderator did carries the moderator's name, as far as Twitch reports it; for a deleted message Twitch names nobody.
Recording. Both switches are on by default. 'Keep A User History' writes each action into Settings/user-history.jsonl the moment it happens. 'Write To Streamer.bot User Variables' copies the history into each viewer's user variables, where Streamer.bot shows it and your other actions can read it:
| User variable |
Holds |
ts_bans, ts_timeouts, ts_deletes, ts_warns |
How many of each still count: an entry marked Invalid does not, a lifted or expired one does. |
ts_history |
The entries as JSON: when (to the minute), what, by whom, the module, the seconds, the reason, the mark and your note, plus the earlier names and when the viewer was reset. No message text. |
The copy is made once TwitchSentry has taken no action for half a minute and stops again the moment it acts, so a bot wave is never slowed down by it. Accounts that were treated alike in the same minute are written in one call, which is why even a wave of hundreds takes a few seconds.
Status Log

What TwitchSentry has been saying about itself, pulled out of the Streamer.bot log: an API key still on its placeholder, a download that failed, an action Twitch refused. None of that is announced in chat, so this is the page to open when something quietly did not happen. Streamer.bot starts a new log file at midnight; the day list at the top picks which one to read.
Spam Log

The Spam Log is every message Spam Scoring and the Link Filter removed on the day picked at the top, exactly as it was posted. The Spam Learner learns from it, and it is the page to open when you disagree with one of those removals. Earlier days are in spam-log-2026-11-24.txt and so on, beside it in the Logs folder, and the Spam Learner keeps reading them.
Clean Chat Log

The Clean Chat Log is the opposite of the Spam Log: a sample of ordinary chat that was deliberately left alone, roughly one message in ten. The Spam Learner measures its candidates against it, which is what stops an everyday word from becoming a rule. Unlike the other logs it stays one file rather than starting anew each day, because the Spam Learner measures against all of it; its day list only picks which day of the sample to show. Both pages have a search box, a day list and a per-account filter, and both show the full line under the list, because chat messages are usually wider than the row.
Help
Manual

Five tabs. Getting Started has five first steps, with a link to their page where they have one, and what to do when something goes wrong. Pages holds the longer explanation behind every card with a ? in its corner, page by page in the order of the sidebar. Terms explains the words the window uses, from Score to Shield Mode, A to Z with a filter, and links each one to the page and card it belongs to. Commands lists every chat command. Deck Buttons lists every argument a deck key or the OBS dock can send, each with the values it takes: the modules, the profiles (yours as well), the exemptions, the Always Allowed switches, where alerts go and the placeholders for a key's title.

A ? opens the Manual at its card's section on the Pages tab and lights it up for a moment; ← Back to … at the top takes you back to the page you came from, scrolled to where you left it. Opened from the sidebar or from Home, the Manual has no back button.
Installing TwitchSentry and where the files live are covered only here, in the online manual, which the Manual page links to.
Backup & Restore

Everything TwitchSentry knows about your channel is a handful of files in one folder, and two of those
files are things nothing can give back: your settings and the replies you have written, and the
keywords, phrases and domain endings the Spam Learner has built up from months of your own chat.
Backing up writes a dated folder of ordinary files. Tick what goes in: settings and chat messages,
learned spam data, language files, logs, cache. The first three are ticked by default. All five together
come to a few hundred kilobytes unless you keep long logs; the User History (Settings/user-history.jsonl)
is not part of a backup. Backup Folder is where they go — leave it empty and they land in a Backups folder inside
TwitchSentry itself, which is better than nothing but shares a disk with the thing it is protecting,
so point it at a second drive or a synced folder if you have one. Pressing Back Up Now saves your
settings first, so the copy is never taken around edits you have not committed.
Restoring asks for a backup folder and copies its files back over the ones in use. Only the parts
that backup actually contains are touched and nothing is ever deleted — a settings-only backup leaves
your logs and your learned spam data exactly where they are. A copy of the current state is put aside
first, in the same backup folder, so a restore you did not mean is itself undoable, and the settings
window reopens afterwards showing what was restored; changes in it you had not saved are discarded. A folder that is not a TwitchSentry backup is
refused rather than copied.
Because a backup is a plain folder, you can also open it, read it, and copy a single file back by
hand — there is no archive to unpack.
If one of TwitchSentry's own files cannot be read at all, the settings window says so before it
opens, in a window of its own: which file it is, what it holds and what the reader made of it. From
there you can put a copy back from one of your backups — only the ones holding a readable copy are
offered, newest first — or open the folder, correct the file and check again, or start on the defaults,
which renames the damaged file to .bak beside itself and keeps saying so in the window until you save.
A file that is simply not there yet, as on a fresh install, is not damaged and nothing is said.
About & Links
Who is behind TwitchSentry, its contributors and translators, the links to Twitch, GitHub and the Streamer.bot
Discord thread, and the data and services it draws on, each with its address.
Deck buttons

A Stream Deck key, a Streamer.bot Deck button or the OBS dock can do what a streamer wants
mid-stream without opening the settings window: switch profiles, a module, a Notifications tab, an exemption or
an Always Allowed link, change what AutoMod and Silent Bot Protection do, start or end test mode, arm Raid or
Follow Wave Protection, lock the chat down against a hate raid, take the last action back, or grant, refuse and
end link permits. The action behind them is [TS] - Deck.
It works on what the other actions share — configs.json, the Profiles folder and Streamer.bot's globals —
so it does not matter whether the settings window is open.
The settings window lists the same on the Manual page, tab Deck Buttons: every argument with the
values it takes, your saved profiles included.

Setting up a key
A key runs [TS] - Deck and says in an argument what it wants:
| Argument |
Example |
What it does |
tsPanic |
toggle |
The panic button: switches to Under Attack and arms Raid Protection, and pressed again puts back every setting the way it was before. on and off work too |
tsProfile |
Under Attack |
Switches to that profile: Relaxed, Balanced, Strict, Under Attack, Just Chatting, or the name of one of your saved profiles |
tsModule |
Voting off |
Switches a module on or off: Raid Protection, Hate Raid Protection, Follow Wave Protection, Silent Bot Protection, Word Filter, Offline Protection, AutoMod, Twitch Warn, Permit, Check Link, Voting, Spam Learner |
tsExempt |
VIPs on |
Whether Followers, Subscribers or VIPs are left alone by the filters — Exclude Followers, Exclude Subscribers and Exclude VIPs on General Settings |
tsAllow |
All YouTube Videos on |
One of the twelve Always Allowed switches of the Link Filter: Your Twitch Clips, Your Twitch Channel Page, Your YouTube Channel Page, Your Kick Clips, Your Kick VODs (Only Your Channel), All Twitch Clips, All Twitch VOD Links, All YouTube Videos, All YouTube Shorts, All YouTube Live Streams, All YouTube Clips, All Kick VOD Links (Any Channel: every channel's links of that kind) |
tsNotify |
Stoat on |
Switches a tab of the Notifications page on or off, by its main switch: Discord, Stoat, GameVox, ntfy, Windows |
tsAutoMod |
allow |
What AutoMod does with held messages (AutoMod Action): deny, allow, or toggle |
tsSilentBot |
ban |
What Silent Bot Protection does with the bots it finds (Action On A Silent Bot): report, ban, or toggle |
tsTestMode |
on |
Test mode on for the Test Duration under ☰ → Options, off, or toggle |
tsRaid |
on |
Arms Raid Protection now, without a raid, off disarms it, toggle switches between the two |
tsHateRaid |
on |
Locks the chat down as Hate Raid Protection does in a hate raid, off lifts the lockdown, toggle switches between the two |
tsFollowWave |
on |
Arms Follow Wave Protection as a follow wave does, off disarms it, toggle switches between the two |
tsUndo |
last |
Takes back the last timeout, ban, restriction, monitoring, block or batch, as !tsundo does; @name takes back that viewer's last one |
tsForget |
@name |
Takes the last entry, or that viewer's last one, off the undo trail without asking Twitch: for something a moderator already lifted on Twitch itself |
tsPermit |
last |
Grants a link permit the way !permit does: last to the newest request waiting for a button (Channel Points or !permitme), else to the viewer whose link the Link Filter removed most recently in this stream, @name to anyone. A number after it sets the seconds (@name 120), within Max Permit Duration (Seconds) |
tsPermitDeny |
last |
Refuses the newest request waiting for a button, or @name's; a Channel Points request gets its points back |
tsPermitRevoke |
all |
Ends link permits early, as !endpermit does: all every running one, last the newest, @name that viewer's |
tsPermitForget |
last |
Takes the newest entry, or with @name every one of that viewer's, off the list of removed links without granting anything |
tsState |
now |
Changes nothing. It only writes down again where everything stands, for the OBS dock or for a key that shows the profile |
tsRefresh |
now |
Changes nothing. It draws every key again that shows a title, a colour or a side, where that changed |
The state after a module, a Notifications tab, an exemption or an Always Allowed switch is on or off (an and aus work too). Left out, the key
switches the setting over, which is what a plain key wants. Names ignore upper and lower case, spaces and
dashes, so follow-wave-protection on is Follow Wave Protection.
- Stream Deck, with the Streamer.bot plugin: an Action key on
[TS] - Deck, with the argument
under its arguments. For something that goes on and off, an Action Switch key with [TS] - Deck
on both sides: tsModule = Voting on on Toggle On and tsModule = Voting off on Toggle Off, or
tsPanic = on and tsPanic = off for a panic button that shows whether a panic is on.
- Streamer.bot Deck: a button that runs
[TS] - Deck with the argument.
- Anything else that runs an action — a hotkey, a timer, a command of your own — works the same
way. Where it cannot pass an argument itself, make a small action that first sets the argument
(Set Argument) and then runs
[TS] - Deck (Run Action): an action started that way gets the
arguments of the one that started it.
One key can do several things. Give it more than one argument and they are carried out in the order
of the table: tsProfile = Strict together with tsTestMode = on tries a stricter profile out first. A
part that fails does not stop the rest.
The panic button (tsPanic) remembers what it changed. Pressed, it puts aside every setting Under
Attack is about to write, switches to Under Attack and arms Raid Protection. Pressed again, it puts every
one of those settings back as it was and disarms Raid Protection, so a profile of your own, or one you had
changed since, comes back as it was, not as a built-in profile. What it put aside survives a restart of
Streamer.bot. A profile picked by hand in between ends the panic, and the next press starts a new one.
With Raid Protection switched off, it only switches the profile.
What the key tells you
A Stream Deck key shows a ✓ when everything it asked for went through and a ⚠ when something did not,
for a moment, and then goes back to its own picture. The blue lightning bolt is that picture: it is the
Streamer.bot plugin's standard icon for an Action key, not a warning, and it stays until you give the
key an icon of your own. A Streamer.bot Deck button shows neither mark: what it did is in the logs, in the
OBS dock, and in a Windows notification if you switch those on. Either way the Streamer.bot log and the Status Log page say what happened, or why not: a name that
matches nothing (the line lists what there is), a configs.json that cannot be read, or one from an older
TwitchSentry, which the settings window brings up to date the next time you open it and press Save.
Whatever fails writes nothing.
A key that shows what it switched
A Stream Deck key can show the state its press left behind instead of a fixed label. Give it the argument
tsTitle:
tsTitle = auto writes TwitchSentry's own few words: the name on the key and On or Off for a
module, an exemption, test mode or an armed protection, the profile that is running for a profile key (with a
* once a setting was changed since), and whom the next undo sets free; Allow or Deny for AutoMod, Ban or
Report Only for Silent Bot Protection, and on a permit key the viewer it acts on next.
- Words of your own with placeholders:
{state} (On or Off, in the window's language), {state:LIVE|OFF}
(your own words for on and off), {name} (the name on the key), {profile}, {until} (when test mode,
the raid window or the follow wave window ends) and {last} (the viewer the next undo sets free). \n starts a new line, as in
{name}\n{state:ON|OFF}.
tsColor paints the key as well: auto is green for on (a tsPermit or tsPermitDeny key while a
viewer asks for a permit, a tsPermitRevoke key while a permit runs), red for an armed Raid or Follow Wave
Protection, a hate raid lockdown or a panic, amber for
test mode and dark grey for off; #1E7B34|#2B2B2B gives colours of your own for on and off, and one colour
paints it the same either way. It replaces the key's background, so leave it out on a key with an icon of
its own.
On a Streamer.bot Deck button both need one more argument, tsDeckItemId: the button's own item id.
Streamer.bot hands the deck over with every press, but not the button. The id is the one the Streamer.bot
Decks sub-action Item Set Title keeps for that button (an export of an action that has one shows it), not
the number in the deck editor's address. A Deck Switch whose two sides pass their argument as a Boolean,
such as tsTestMode True and False, carries its title and colour on both sides.
Leave the key's title empty in the Stream Deck software: a title typed there is not written over. The
Streamer.bot plugin has a title field of its own (since its version 1.1.0), and that is the one TwitchSentry
writes into.
An Action Switch key needs neither argument to stay honest: after a press it is set to the side that is
true. A press that failed flips it back, and a module switched in the settings window meanwhile is shown
the right way round again. A key that shows a title, a colour or a side is drawn again by itself once what it
shows changes elsewhere: in the settings window, from chat, or when test mode or a raid window runs out. For a
pure status key, give it tsState and tsTitle only.
The OBS dock

The same buttons inside OBS. Set Up OBS Dock, under ☰ → Options... → OBS Dock in the settings window,
writes the dock's page into the TwitchSentry folder (Dock\TwitchSentry-Dock.html) and puts its address on the
clipboard. In OBS, open Docks → Custom Browser Docks, enter TwitchSentry as the dock name, paste the address
as its URL and press Apply. OBS takes a dock only from that menu, so this last step is always done by hand.
The dock talks to Streamer.bot through its WebSocket Server (Servers/Clients → WebSocket Server),
which has to be running: switch on Auto Start there. The dock connects to ws://127.0.0.1:8080/,
Streamer.bot's default. Another address, and the password when Authentication is on, go under ⚙ in the
dock, which keeps them in OBS's own browser storage on this PC. That is also where you pick the action it
runs, [TS] - Deck unless yours has another name.
Profile at the top: the one running, marked when a setting was changed since.
Under Attack + Arm Raid Protection: the panic button. While a panic is on it
turns red and reads End Panic, with the profile it goes back to beneath.
Up to 24 buttons of your own: six until you change the number under ✎ → Buttons Shown, at first the
four built-in profiles besides Under Attack, then Test Mode and Raid Protection. ✎ at the top sets each
one to Test Mode, the Panic Button, Undo, a profile (built-in or saved), a module's switch or one of
its functions, a Notifications tab, an exemption or an Always Allowed switch, with a label and a colour of your
own if you like. In the list each module's main switch is a bold heading marked ⏻, in the colour of its page in
the settings window, with its functions indented beneath it: Arm (Raid Protection, Follow Wave Protection),
Lockdown (Hate Raid Protection), Action (Silent Bot Protection, AutoMod), and under Permit Grant, Refuse
Request and Revoke All; the button itself takes the full name. Each entry says on the right what a press
does, and the search field at the top narrows the list as you type. The profile running, and a switch that is
on, are lit; Test Mode, Raid Protection and Follow Wave Protection show the time they have left; Grant
Permit turns green while a viewer asks for a permit through Channel Points or !permitme. The dock keeps them in OBS's own
browser storage, so each dock has its own.

Modules (with AutoMod Action, Deny or Allow, Silent Bot Action, Report Only or Ban, and Hate Raid Lockdown, each on a
rail in its page's colour under its module and faded while that module is off, Hate Raid Lockdown hidden
instead), Notifications (the main
switch of each tab: Discord, Stoat, GameVox, ntfy and Windows), Exemptions, Always Allowed, Recent
Actions and Permit fold away with a click on their heading, and the dock remembers which are folded.
Every switch shows its state, and a click flips it. Always Allowed names its switches Your … for links of
your own channel and All … for that kind of link from every channel.
Recent Actions: the newest eight things TwitchSentry took from a viewer. A timeout, ban, restriction,
monitoring or block comes with an Undo of its own; a link the Link Filter removed in this stream comes
with Grant Permit, which lets that viewer post it again. Each has a ✕ that takes it off the list
without asking Twitch. An entry drops off by itself when a moderator unbans that viewer or lifts the timeout
on Twitch, and a removed link when its viewer gets a permit or leaves the chat.
Permit: the link permits running now, with the time they have left and a ✕ that revokes one, then
this stream's requests waiting for a button, from Channel Points or !permitme (Grant Permit lets one
through, ✕ refuses it and gives Channel Points back). Grant Permit runs the Permit action, so chat, Discord and the Action Log hear
of it as they do of !permit, for the duration set on the Permit page; the viewer's removed links leave the
list with it. What came in before the stream went live belongs to an earlier stream and is no longer shown.
What a press did, for a moment at the bottom edge, from a Stream Deck key or a Streamer.bot Deck button
as well.
Every button runs [TS] - Deck with the arguments a key would pass, so the dock can do what a key can and
nothing more, and the log and the notifications say the same. It shows what the deck action writes after
every press; a Save in the settings window, a raid that arms Raid Protection and test mode started from the
☰ menu reach it by themselves.
Once it is set up, the settings window writes the page again whenever it opens, so it keeps up with TwitchSentry's version and
with the window's language; OBS shows the new one the next time it loads the dock. The page is an ordinary
web page, and opened in a browser on the same PC it works the same way.
Notes on each
- Profiles are written exactly the way picking one in the Profiles dialog writes them, through the
same filter, so a saved profile cannot bring a webhook URL or somebody else's whitelist in this way
either. The English name always works. The name the window shows in your language works too, but only
while the window stays in that language, so the English one is the safer label for a key: the Profiles
dialog lists them under Switch From A Deck, with your language's name beside each.
- Modules, Notifications and exemptions are the master switch at the top of a module's page or of a tab on
the Notifications page, and the three exemptions on General Settings, written the same way the window writes them. The Link Filter, Spam Scoring and the
Message Filter have no switch, by design, so a key cannot switch them off either.
- Always Allowed and AutoMod Action are the same switches as on the Link Filter and the AutoMod
page. AutoMod's answer can be changed while the AutoMod module is off; it applies once it is on.
- Silent Bot Action is Action On A Silent Bot on the Silent Bot Protection page.
- Test mode is the same as the one in the ☰ menu: it runs for the Test Duration under ☰ → Options and ends by itself when its time is up.
- Arming Raid Protection does what an incoming raid does: the raid window, plus the chat modes, Shield
Mode and paused queues where As Soon As A Raid Arrives, Shield Mode On Raid and Pause Queues During A
Raid are on. It is for a wave of accounts that never came as a raid, so there is no raider to trust and no
raid size to measure, and Trusted Raiders and Min. Raid Viewers do not apply. A key set to
on, pressed
again while armed, starts the window over without adding a chat mode; off, a plain key or toggle lifts
what arming put on, as the window running out would. Raid Protection itself has to be switched on.
- Arming Follow Wave Protection does what a follow wave does, for Stay Armed (Seconds): every follow
meanwhile is judged, with Shield Mode and the paused queues where they are on. Until a real wave crosses the
threshold, the accounts it flags stay off the Shared Bot List. A key set to
on, pressed again while armed,
starts the window over; off, a plain key or toggle disarms it. Follow Wave Protection itself has to be
switched on.
- Hate Raid Lockdown locks the chat down as a detected hate raid does: Shield Mode, the chat modes and the
queues you named, and accounts arriving meanwhile judged as in any lockdown. Started by hand, it bans no raider and
does not lift itself after a quiet spell, only by hand (
off, the key again, or !hateraid off) or after its
Longest Time. Hate Raid Protection itself has to be switched on.
- Undo follows
!tsundo step for step: the newest entry on the undo trail, whichever module wrote it.
When Twitch refuses, the entry stays on the trail to be tried again. It is written to the Action Log,
posted wherever On Undo via !tsundo is switched on under Notifications, and said in
chat only where TwitchSentry says what it does in chat (Reply In Chat).
With the settings window open
The window notices within a couple of seconds and says so in the notice strip — A deck button switched
to Under Attack, or A deck button changed settings — with Reload beside it, because its pages still
show what was running before. Saving without reloading does not undo the key: a setting you did not touch
in the window keeps what the key wrote, and one you did change keeps your change. Test mode started from
a key counts down in the strip, as it does from the menu.
Chat commands
Moderator-only unless noted. TwitchSentry recognises each command by its Streamer.bot command id, so a command or trigger word renamed in the Commands tab keeps working; a command deleted and made again gets a new id and is no longer TwitchSentry's. The list commands work in chat while Allow Chat Commands on General Settings is on, and by whisper with Allow Whisper Commands. A viewer's !checklink is spared by the filters only when it holds exactly one link (Check Link); any other message that starts with a command is checked like every other message — moderators and the broadcaster are exempt from the filters anyway.
| Command |
Manages |
!checklink <url> |
Scans a link with Check Link (anyone) |
!permit @user [seconds] |
Grants a temporary link permit |
!endpermit [@user] |
Ends that viewer's permit, or all of them |
!permitme |
Asks for a link permit, which waits for a button or a moderator's !permit (anyone, while Accept !permitme is on) |
!vote @user |
Starts or joins a vote (anyone) |
!endvote |
Ends the running vote early |
!wladd / !wlremove / !wllist |
Whitelisted Domains on the Link Filter page |
!amadd / !amremove / !amlist |
AutoMod Whitelist |
!euadd / !euremove / !eulist |
Excluded Users |
!egadd / !egremove / !eglist |
Excluded Groups |
!veuadd / !veuremove / !veulist |
Vote-Excluded Users |
!vegadd / !vegremove / !veglist |
Vote-Excluded Groups |
!kwadd / !kwremove / !kwlist |
Keywords on Known Patterns |
!tldadd / !tldremove / !tldlist |
Domain endings on Known Patterns |
!bwadd <word> [2h] [twitch] [delete|timeout|ban] / !bwremove / !bwlist |
Blocked Words on the Word Filter page. !bwlist says only how many there are, unless whispered (with Allow Whisper Commands on) |
!nuke <phrase> [seconds back] |
Removes every message with that phrase from the last minute of chat, or as far back as given (600 seconds at most), by default with a timeout for each sender |
!tsundo [@user] |
Takes back the last timeout, ban, restriction, monitoring, block or batch (a whole nuke, a wave, a Silent Bot round, up to 40 accounts of a lockdown), or that viewer's last one |
!hateraid [on|off] |
Locks the chat down as Hate Raid Protection does in a hate raid, or lifts the lockdown. Without on or off, it toggles |
!antiraid [on|off] |
Arms Raid Protection as an incoming raid does, or disarms it. Without on or off, it toggles |
!followwave [on|off] |
Arms Follow Wave Protection as a follow wave does, or disarms it. Without on or off, it toggles |
Languages
| Window |
Chat Messages |
 |
 |
☰ → Change Language has two tabs, and each language is chosen on its own: a channel can run the window in English and talk to its chat in German.
- Window — the settings window ships in English, German, Spanish, French and Brazilian Portuguese, and Dutch comes from the community. Pick one, Download it if it is not on this PC yet, and choose Use This Language: the window closes and reopens in it.
- Chat Messages — what TwitchSentry writes in chat, in English, German, Spanish, French and Brazilian Portuguese. Picking one rewrites the messages on every Messages tab. A message you changed yourself keeps your wording: if there are any, a list shows each one beside the new text, and only the ones you tick are replaced. Everything starts out in English, so nothing in your chat changes until you pick a language here.
Both are kept current from GitHub every ten minutes, and the window opens on the copy you already have if GitHub is unreachable. When a chat language is updated, the messages TwitchSentry wrote follow it; yours stay as they are.
Writing a translation is a matter of copying Settings/Language/en.json and replacing the values — each key is the exact English string from the window. The line "__dateFormat" at the top sets how the window writes dates in that language, dd.MM.yyyy in German for example: / and : stay as written, month names (MMMM) come in the language, and times keep their 24-hour form. Without it the window uses the language's usual date. A chat language works the same way from Settings/Language/Chat/en.json, whose keys are the English messages. Keep any {user}, {count} or {duration} placeholders spelled the same way; a {pronoun:he|she|they} takes the words of your language. Save it under a code that is not published and it will never be overwritten. To bring it to everyone, Share With Others... in the ☰ menu → A complete translation file, with The settings window or Chat messages: for a language TwitchSentry does not have yet, or to bring an existing one up to date. One text that reads badly is quicker as Report... → A translation, where Where does the text show? picks a chat message instead of a window text.
Where the files live
Everything sits under your Streamer.bot base directory, in a TwitchSentry folder. You should never need to edit any of it by hand.
TwitchSentry/Settings/configs.json ← all module settings
TwitchSentry/Settings/messages.json ← everything the bot says in chat
TwitchSentry/Settings/Language/<code>.json ← settings-window translations
TwitchSentry/Settings/Language/Chat/<code>.json ← chat message translations
TwitchSentry/Settings/Profiles/<name>.json ← your saved and imported profiles
TwitchSentry/Settings/user-history.jsonl ← the User History
TwitchSentry/Settings/user-history.bak ← entries moved aside by Reset Viewer...
TwitchSentry/Machine Learning/spam.json ← active keywords, phrases, patterns, TLDs
TwitchSentry/Machine Learning/spam-suggestions.json ← the Learner's pending suggestions
TwitchSentry/Machine Learning/spam-feed-state.json ← which spam feed entries were already handed over
TwitchSentry/Machine Learning/feed-patterns-state.json ← each spam feed pattern: watching, waiting, armed or off
TwitchSentry/Logs/action-log.txt ← today's moderation action history
TwitchSentry/Logs/action-log-<yyyy-MM-dd>.txt ← earlier days, one file each
TwitchSentry/Logs/spam-log.txt ← today's raw text the Learner mines from
TwitchSentry/Logs/spam-log-<yyyy-MM-dd>.txt ← earlier days, one file each
TwitchSentry/Logs/clean-log.txt ← sampled normal chat
TwitchSentry/Logs/followbot-blocks.txt ← accounts Follow Wave Protection blocked
TwitchSentry/Logs/silentbot-finds.txt ← accounts Silent Bot Protection found
TwitchSentry/Logs/viewbot-evidence.txt ← the Viewbot Alarm's counts
TwitchSentry/Logs/hateraid-evidence.txt ← each lockdown's accounts and what they wrote
TwitchSentry/Cache/stopwords.txt ← downloaded common-word list
TwitchSentry/Cache/tld_cache.txt ← downloaded valid domain-ending list
TwitchSentry/Cache/spam-feed.json ← the last downloaded spam feed
TwitchSentry/Cache/ota-manifest.json ← the feed's list of files with their SHA256
TwitchSentry/Cache/home-banner.png ← the banner on Home
TwitchSentry/Cache/TwitchSentry-Toast.ico ← the icon Windows notifications carry
TwitchSentry/Cache/webhook-threads.json ← each module's thread in a Discord forum
TwitchSentry/Cache/followers.txt ← your followers, read when Streamer.bot starts
TwitchSentry/Cache/botlist-state.json ← the bans the Shared Bot List placed here
TwitchSentry/Cache/isds/ ← the hate raid lists
TwitchSentry/Dock/TwitchSentry-Dock.html ← the OBS dock
TwitchSentry/Backups/ ← backups, unless Backup Folder points elsewhere
Settings are re-read whenever the file changes, so Save is enough — no Streamer.bot restart.
Questions are answered in more depth in the FAQ, and anything that looks wrong is worth an issue.