Ir al contenido

Censor

The Censor module (censor) allows you to keep your server clean from unwanted words, block unauthorized external links, and protect your users from phishing links.

Option Description
maxLvl Maximum authorization level to which the filters will be applied.
md true to send direct messages to offenders.
ignoredRoles IDs of roles exempt from censorship.
ignoredChannels IDs of channels where censorship will not act.

Links (Anti-Links)

  • antiLinksEnabled: Enables/Disables the filter.
  • antiLinksWhitelist: Allowed domains (e.g. ['youtube.com']).
  • antiLinksOnlyDelete: true to delete silently, false to alert in a channel.
  • antiLinksChannelId: Alerts channel (if antiLinksOnlyDelete is false).

Words (Word Blacklist)

  • wordBlacklist: List of blocked words (separated by commas).

Tokens (Token Blacklist)

  • tokenBlacklist: Blocked fragments or links (e.g. ['discord.gg/']).

Phishing

  • antiPhishingEnabled: Enables the intelligent database of malicious links.

Configuration example

censor:
maxLvl: 10
md: true
ignoredRoles: ['111111111111111111']
ignoredChannels: ['222222222222222222']
antiLinksEnabled: true
antiPhishingEnabled: true
antiLinksWhitelist: ['youtube.com', 'tenor.com']
antiLinksOnlyDelete: true
antiLinksChannelId: ''
wordBlacklist: ['badword1', 'insult2']
tokenBlacklist: ['discord.gg/']