BotFrame
Skip to content

Quick-start template · Free

Automatic moderation

Start with one understandable moderation rule: remove messages containing discord.gg/ unless their author has Manage Messages. The rule stays visible and editable on the graph.

AutoMod template with moderator exemption in the BotFrame workflow editor

What happens in Discord

Example interaction

Member action
An ordinary member posts https://discord.gg/example
Bot behavior
Deletes the matching message. Messages from members with Manage Messages are exempt; ordinary conversation is left alone.
  1. Message contains discord.gg/
  2. Check author’s Manage Messages permission
  3. False: delete that message
  4. True: leave it alone

Choose it during setup

Create a workspace and select Automatic moderation on the template screen. Connect your own Discord bot, deploy it, then choose Add bot to server. The link below opens workspace setup; it does not preselect a template.

All six quick-start templates can deploy on Free, within its one-bot, one-server and 5,000 monthly workflow-run limits. Free bots use BotFrame branding. Editing a template can introduce paid features; check deployment eligibility after changing it.

Settings worth checking

Automatic moderation: configuration
SettingWhat to check
MatchMessage sent uses contains with discord.gg/. This is one text match, not a general abuse detector.
Staff exemptionThe permission check reads the message author. Members with Manage Messages are exempt.
Deletion targetThe message ID from the trigger connects to Delete message. Keep it connected to the triggering message.
Discord accessThe bot needs access to the channel, permission to delete messages, and the message-content access requested during connection.

Check these outcomes

Automatic moderation: test checklist
Try thisExpected outcome
Ordinary member posts discord.gg/That message is deleted.
Moderator posts the same linkThe message is kept.
Member sends normal conversationNo deletion occurs.
A different invite format is postedDo not assume it is caught by this template’s single filter.

Use the simulator walkthrough to check the flow before trying it in a test server. A simulated result does not confirm the live bot’s Discord access.

What this template does not do

This is not an anti-raid or all-spam filter. Other invite formats, obfuscated text and unrelated scam links are outside the initial rule. Review and test additional rules before relying on broader coverage.

Make it yours

Add explicit rules for the other patterns you want to moderate and test normal messages that resemble them. Keep a staff exemption or intentional alternative, and consider logging moderation actions.

Open the node references: Message sent · Member has permission · Condition · Delete message.