Overview
You want to know when someone mentions your product, your name or a topic in a Discord channel. But you are not an admin or a moderator, so you cannot add a bot or set up AutoMod. With the Reduck CLI or API, a short script searches your channels for your keywords on a schedule, as you, and sends you only the new messages.
Why it's hard
Discord only notifies you of @mentions and replies. Its keyword rules, AutoMod, are for people who manage the server, and so is adding a keyword-alert bot: someone with the Manage Server permission has to invite it. The tools that work for a regular member change your client (BetterDiscord or Vencord plugins, while Discord's policy says not to modify the client for any reason) or log in with your user token as a self-bot. Running Discord's search by hand, every day, for every keyword and every channel, is what most people end up doing.
How Reduck does it
Reduck runs Discord actions in your own Chrome, where you are already signed in, so it sees every server and channel you can see. search_messages runs Discord's own search for your keyword in one server, optionally in some channels only, and answers with the newest matches first, with the channel, the author, the text, the time and a link. A script keeps the id of each message it has already reported, so every run sends you only what is new.
Set up Discord keyword alerts with the CLI
Get the server id and the channel id from Discord's developer mode, or from list_channels. Then save this as discord-alerts.sh:
#!/bin/bash
SERVER=123456789012345678
CHANNEL=234567890123456789
KEYWORD="your product"
sqlite3 alerts.db "CREATE TABLE IF NOT EXISTS seen (id TEXT PRIMARY KEY)"
npx @reduck-ai/cli@latest run --script reduck/discord.com/search_messages \
guildId=$SERVER "channelIds=[\"$CHANNEL\"]" "content=$KEYWORD" > page.json || exit 1
jq -r '.messages[] | [.messageId, "\(.author.name): \(.content) \(.url)"] | @tsv' page.json |
while IFS=$'\t' read -r id alert; do
added=$(sqlite3 alerts.db "INSERT OR IGNORE INTO seen VALUES ('$id'); SELECT changes();")
[ "$added" = "1" ] && echo "$alert"
done
Each run prints one line per new message: the author, the text and the link. The first run prints the latest matches; the next runs print only new ones. Run it every 15 minutes with cron, with an API key in REDUCK_API_KEY, and send the lines where you want them, for example to your phone with ntfy:
*/15 * * * * cd ~/discord-alerts && ./discord-alerts.sh | while read -r line; do curl -s -d "$line" ntfy.sh/your-topic; done
To build alerts into your own code, call the same script with the REST API: POST /run with your API key in x-api-key, the script reduck/discord.com/search_messages and its arguments, and "browser": "extension" so the run uses your signed-in Chrome.
Tools
| Script |
What it does |
Takes |
list_servers |
The servers you are a member of, with their ids |
nothing |
list_channels |
A server's channels, with their ids |
the server id |
search_messages |
The newest messages of one server that match your keyword, 25 per page |
the server id, the keyword, channels (optional) |
Connect it
- Install the Reduck extension in Chrome and stay signed in to Discord there, in one tab only.
- Install the Reduck CLI and run the script above, or add Reduck to your AI client: Claude Code, Claude Desktop, ChatGPT or any other MCP client.
- From an AI client, ask: "Search my Discord servers {server names} for new messages that mention {keywords}, and send me only the ones I have not seen yet."
Ways to get Discord keyword alerts
| Method |
Any keyword |
As a regular member |
Real time |
No client mod or token |
| Discord notifications |
No, @mentions and replies |
Yes |
Yes |
Yes |
| AutoMod |
Yes |
No, needs Manage Server |
Yes |
Yes |
| Keyword-alert bot |
Yes |
No, someone adds it |
Yes |
Yes |
| KeywordPing (BetterDiscord) |
Yes |
Yes |
Yes, while your client is open |
No, a modified client |
| Reduck CLI or API |
Yes |
Yes |
No, at each scheduled run |
Yes |
Who it's for
- Founders and marketers who want to know when their product is mentioned in communities they are only members of
- Job seekers and freelancers watching channels for "hiring", "looking for" or their skill
- Developers who want Discord keyword alerts in their own scripts, without a bot