Ställ in en Discord-bot för nyckelordsbaserade autosvar
Använd Cortex AI Pro-instrumentpanelen för att skapa en Discord-bot som ger vanliga textsvar på nyckelord. En regel kan matcha ett exakt meddelande, ett meddelande som börjar med en utlösare eller en utlösare var som helst i meddelandet. Matchning ignorerar skiftläge.
Börja gratisBörja gratis. Pro kostar 9,99 USD per månad.
Innan du börjar
- Use an online Pro bot with Cortex AI enabled for the server you want to configure. Cortex is a Pro module. Free stock modules do not provide an automatic reply to an ordinary phrase: Custom Commands only handle messages that begin with your bot prefix.
- Make sure the bot can view the target channel, send messages there, and has Message Content Intent enabled. The reply engine ignores messages from bots and messages outside a Discord server.
- Choose short plain-text triggers and replies. A server can store up to 50 dashboard rules, and each rule can have one through ten reply variants.
Open Cortex AI settings for the correct server
In the dashboard, open your bot, choose the Modules tab, then configure Cortex AI and select the intended server. Keep Enable auto-responses turned on. These dashboard rules are saved for the selected server.
Select Add rule. A new dashboard rule starts with Exact message selected, while an omitted match type in saved settings defaults to Contains. Save Settings after making your changes so the bot receives the configuration.
Add a trigger and choose the match type
Enter the trigger, then choose Contains, Exact message, or Starts with. Contains looks for the trigger as a substring anywhere in the message; Exact message requires the whole message to equal the trigger; Starts with requires the message to begin with it. All three comparisons ignore letter case.
Example — match a help request: use Contains with help to match “Need HELP please”; use Exact message with help to match only “help”; or use Starts with help to match “help me” but not “I need help”. These modes do not use word boundaries, so a Contains trigger can also match inside a longer word.
Add reply variants and set a cooldown when needed
Add one or more plain-text reply variants. A missing weight counts as 1; a positive whole-number weight makes that variant more likely to be selected. For example, weights 3 and 1 give the first reply three times the chance of the second over repeated matches. A weight does not guarantee a particular reply.
Cooldown is a whole number of seconds from 0 through 86,400 (up to 24 hours). It defaults to 0, which means no cooldown, and its scope defaults to Per channel. With a channel cooldown, a matching rule stays silent for everyone in that channel until it expires; with Per user, that member stays silent across channels in the same server while other members can still receive a reply. A cooling match is handled silently rather than falling through to Cortex AI.
Save and test with a member message
Save Settings, then send a test message from a non-bot account in the selected server. Test the capitalization and message shape for the mode you chose. If the rule is cooling down, wait for it to expire or set Cooldown to 0 before trying again.
If there is no reply, confirm Cortex AI and Enable auto-responses are enabled, you selected the correct server, and the bot can read the channel and receive message content. Dashboard keyword rules are evaluated before the older auto-responder records and Cortex AI chat.
Worked example — point a known phrase to the right channel
For a focused redirect, choose Contains and enter the distinctive phrase looking for an RP partner. Add one plain-text reply: “Partner searches belong in #rp-partners.” The reply can name a channel this way, but this rule has no destination-channel picker: Cortex sends the reply in the channel where it matched.
Set Cooldown to 300 seconds and choose Per channel. The phrase-rule match choices are Contains, Exact message, Starts with and Pattern; this example uses Contains so a longer request can still match. Cortex sends a separate reply and leaves the member’s original message in place.
For a quick test, send “I am looking for an RP partner” from a non-bot account. Confirm that the original and the new redirect reply appear together, then send the phrase again within five minutes and confirm that the channel cooldown suppresses another reply.
Example — one help rule, three match choices
| Match type | Trigger | A matching member message |
|---|---|---|
| Contains | help | “Need HELP please” |
| Exact message | help | “help” |
| Starts with | help | “help me” |
Vanliga frågor
Are Discord keyword auto-replies case-sensitive?
No. Contains, Exact message and Starts with all compare the trigger and message without letter case.
Can I make several replies for one keyword?
Yes. A dashboard rule accepts one through ten reply variants. Missing weights are equal; use positive whole-number weights to make one variant more likely.
What does Per user cooldown mean?
It suppresses that rule for the matching member across channels in the same server until the cooldown expires. Other members can still receive a reply.
Can I limit a keyword rule to a Discord role or channel?
No. Current dashboard rules offer channel or user cooldown scope, not per-trigger channel or role filters.
How do I make a Discord bot point people to the right channel when they use a known phrase?
Use Cortex AI on Pro. Free stock modules do not provide a phrase-triggered reply: Custom Commands require the bot prefix. Add a Contains rule for a distinctive phrase, write a reply that names the destination such as #rp-partners, and set a 300-second Per channel cooldown. Cortex posts a separate reply in the matching channel and leaves the original message in place.
How many Discord keyword auto-reply rules can I save?
A server can save up to 50 dashboard rules. Each rule can use one through ten plain-text reply variants.
Relaterade moduler
Relaterade guider
Verifierade källor
Fil- och radreferenser stöder de inställningar och begränsningar som beskrivs.
- server/templates/modules/cortex/replies.js:6-60, 141-198
- server/templates/modules/cortex/automation.js:92-112
- server/templates/modules/custom/index.js:81-110
- server/lib/entitlements.js:107-114, 233-237; server/lib/botGenerator.js:3356-3376
- client/src/components/CortexReplySettings.tsx:37-103
Relaterad guide
Om svar på nyckelord ska komplettera ett forumflöde, läs guiden för att automatisera Discord-foruminlägg för taggning, arkivering och avslut.
