Suspicious Words
Alert moderators when a message contains a phrase from your watch list, even when the author disguises it with accents, symbols, or digits.
Why Use This Feature?
- Matches disguised spellings such as "s33d phr4se" or "SEED-phrase", so simple tricks don't hide a phrase from moderators.
- Groups phrases into categories, so each alert says why the message was flagged.
- Stays observation-onlyOnly alerts moderators; never acts on members, so moderators decide what happens to the message.
How It Works
- What it reads — New messages and edits that change a message's text, from members other than bots.
- How it cleans text — The bot applies the same normalizationCleanup that makes look-alike text match to your phrases and to each message before comparing them.
- How it matches — A phrase matches only as whole words, so "scam" matches "sc4m alert" but not "scammer".
- What it posts — One embed per message, titled "Suspicious phrase detected", listing every category that matched.
The normalizationCleanup that makes look-alike text match steps, in order:
- Accents and other marks are removed, and styled or fullwidth letters become plain ones.
- Symbols and punctuation become spaces, so "seed-phrase" reads as "seed phrase".
- Digits become letters: 0 to o, 1 to l, 2 to z, 3 to e, 4 to a, 5 to s, 6 to g, 7 to t, 8 to b, and 9 to q.
- Repeated spaces collapse into one, and the text is lowercased.
The embed shows the author, the channel ID, the matching categories, an excerpt of up to 700 characters, and a link to the message. Suspicious words runs before regex rules and affiliate cleanup, so the link can point to a message another feature deleted a moment later.
These alerts post only in your Discord alert channelWhere a feature posts its reports for moderators, while Notifications sends alerts about the bot itself to your phone or inbox.
Requirements
- Message Content intentLets the bot read what messages actually say — Switch on this privileged intentAn intent you must switch on in the Developer Portal first for your application in the Discord Developer Portal.
- Channel permissions — The bot needs View Channel in the channels it watches, and View Channel, Send Messages, and Embed Links in the alert channelWhere a feature posts its reports for moderators.
Settings
| Field | Description |
|---|---|
Phrase categories (categories) | 1 to 100 categories. |
Category (categories[].category) | The category's name, shown in each alert, up to 100 characters. |
Words and phrases (categories[].words) | 1 to 250 phrases, each up to 200 characters. |
Alert destination → Channel (channel) | The alert channelWhere a feature posts its reports for moderators, required. |
The feature rejects a category whose phrases contain no letters or digits after cleanup. The Words and phrases field takes one phrase per line, so a phrase can contain a comma.
Example
{
"categories": [
{ "category": "Credential theft", "words": ["send me your password", "verify your account"] },
{ "category": "Invite spam", "words": ["join my server"] }
],
"channel": { "channel-id": "123456789012345678" }
}
Limits
- Phrases — 100 categories with up to 250 phrases each.
- Excerpt — Up to 700 characters of the message.
- Alert body — The complete alert is shortened to Discord's 4,096-character embed-description limit when a long category list would exceed it.
Troubleshooting
- A contraction doesn't match — Punctuation becomes a space, so "don't" in your list matches "don t" and "don't" but not "dont".
- "Moderation alert channelWhere a feature posts its reports for moderators is unavailable: …" — This log entry means the alert channelWhere a feature posts its reports for moderators is a category, forum, or other channel that can't hold messages. A deleted channel logs "Unknown Channel" instead.
- No alert for an edited message — The bot sees edits only for messages it has seen since its last reconnect, up to the 200 most recent in each channel.
Changes from the legacy bot
The legacy botThe old v3.4.3 bot that ran from a config.json file deleted punctuation instead of turning it into spaces, and it didn't clean your phrases, so a phrase with capital letters never matched. The rewrite cleans both sides the same way and uses a new embed layout.