khari Docs
Moderation

Auto-mod

Filters for spam, links, invites, caps, and words, plus image scanning.

Run ,automod and pick a preset, or set each filter yourself. Image and GIF scanning is a premium feature. Image-only channels and honeypot channels catch bots and raiders.

Channels commands

,imgonly

Channels where every message needs an image or video. Captions are fine; text alone is deleted.

Also: ,imageonly, ,gallery
,imgonly add <channel>

Makes a channel image-only.

,imgonly list

Shows every image-only channel.

,imgonly remove <channel>

Lets a channel take normal messages again.

Protection commands

,honeypot

A bait channel real members are told not to type in. Spam bots that post there get punished.

Also: ,hp, ,bait
,honeypot add <channel> [ban|softban|kick|timeout]

Makes a channel a honeypot. Softban (the default) bans and unbans right away, which clears their messages.

,honeypot list

Shows every honeypot channel.

,honeypot remove <channel>

Stops a channel being a honeypot.

Auto-mod commands

,automod

Opens the auto-mod panel: set up every filter from a dropdown.

Also: ,am
,automod channel <"spam"|"mentions"|"invites"|"links"|"words"|"caps"|"repeated"|"emoji"|"spoilers"|"musicfiles"|"images"> <channel>

Per-channel override: turns one filter off in one channel. Run again to turn it back on.

,automod exempt <"all"|"spam"|"mentions"|"invites"|"links"|"words"|"caps"|"repeated"|"images"> [channel] [role]

Exempts a role or channel from one filter, or all of them. Run again to undo.

,automod mode <"spam"|"mentions"|"invites"|"links"|"words"|"caps"|"repeated"|"emoji"|"spoilers"|"musicfiles"|"antiraid"|"accountage"|"images"> <"simple"|"advanced">

Switches a filter between simple (presets) and advanced (exact settings).

,automod preset <"spam"|"mentions"|"invites"|"links"|"words"|"caps"|"repeated"|"emoji"|"spoilers"|"musicfiles"|"antiraid"|"accountage"|"images"> <"off"|"relaxed"|"balanced"|"strict">

Simple mode: picks sensible settings for a filter.

,automod reset <"spam"|"mentions"|"invites"|"links"|"words"|"caps"|"repeated"|"emoji"|"spoilers"|"musicfiles"|"antiraid"|"accountage"|"images">

Turns a filter off and clears its settings, word list, and exemptions.

,automod set <"spam"|"mentions"|"invites"|"links"|"words"|"caps"|"repeated"|"emoji"|"spoilers"|"musicfiles"|"antiraid"|"accountage"|"images"> <setting> <value>

Advanced mode: sets an exact threshold, the action, its duration, severe, or enabled.

,automod words

The banned word list. Add * to match word endings, like bad*.

,automod words add <words>

Adds words to the list, separated by spaces.

,automod words list

Shows the banned word list (only you can see it on slash).

,automod words remove <words>

Removes words from the list.

Word filter commands

,filter

Blocked words and phrases. Messages with them are handled by the banned words filter.

,filter add <words>

Blocks words or phrases. Separate several with commas; add * to match word endings.

,filter caps <#channel|all> <on|off> [--do action] [--threshold N]

Deletes messages that are mostly capital letters.

,filter caps exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter emoji <#channel|all> <on|off> [--do action] [--threshold N]

Deletes messages with too many emojis.

,filter emoji exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter exempt <role>

Lets a role use blocked words. Run again to undo.

,filter exempt list

Shows roles that can use blocked words.

,filter invites <#channel|all> <on|off> [--do action] [--threshold N]

Deletes invite links to other servers.

,filter invites exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter list

Shows every blocked word and phrase (only you can see it on slash).

,filter massmention <#channel|all> <on|off> [--do action] [--threshold N]

Deletes messages that mention too many people. Also set in Discord's AutoMod.

,filter massmention exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter musicfiles <#channel|all> <on|off> [--do action] [--threshold N]

Deletes messages with music files (voice messages are fine).

,filter musicfiles exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter regex <pattern>

Blocks messages matching a regex pattern (up to 10). Run again with the same pattern to remove it.

,filter remove <words>

Unblocks words or phrases. Separate several with commas.

,filter reset

Clears every blocked word, allowed word and pattern.

,filter snipe <words|links|invites|images>

Stops ,snipe from showing deleted messages with blocked words, links, invites or images. Run again to undo.

,filter spam <#channel|all> <on|off> [--do action] [--threshold N]

Deletes messages from people sending too fast.

,filter spam exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter spoilers <#channel|all> <on|off> [--do action] [--threshold N]

Deletes messages with too many spoilers.

,filter spoilers exempt <role|list>

Exempts a role from this filter (run again to undo), or `list` shows the exempt roles.

,filter whitelist <word>

Allows a word even if it contains a blocked one, like assassin. Run again to remove it.

Also: ,allow
,filter wordmigrate

Copies your blocked words and mention limit into Discord's own AutoMod, so Discord blocks them instantly.

Also: ,migrate, ,sync