← 返回
内容创作 中文

OpenClaw Profanity Plugin

Content moderation plugin for OpenClaw/Moltbot AI agents. Use when building chatbots that need profanity filtering, moderating user messages in Discord/Slack/Telegram bots, or adding content moderation to OpenClaw agents.
内容审核插件,适用于 OpenClaw/Moltbot AI 代理,用于在 Discord/Slack/Telegram 机器人中过滤脏话、审核用户消息,或为 OpenClaw 代理添加内容审核功能。
thegdsks
内容创作 clawhub v1.0.0 1 版本 99735.2 Key: 无需
★ 1
Stars
📥 1,863
下载
💾 91
安装
1
版本
#chatbot#discord#latest#moderation#openclaw#slack#telegram

概述

OpenClaw Profanity Plugin

Profanity detection plugin for OpenClaw and Moltbot AI agents. Adds automated content moderation to your chatbot with leetspeak, Unicode, and multi-language support.

Installation

npm install openclaw-profanity

Setup with OpenClaw

import { OpenClaw } from 'openclaw';
import { profanityPlugin } from 'openclaw-profanity';

const bot = new OpenClaw({
  plugins: [
    profanityPlugin({
      action: 'warn',              // warn | censor | block | log
      detectLeetspeak: true,
      normalizeUnicode: true,
      languages: ['english'],
      customWords: [],
      ignoreWords: []
    })
  ]
});

Configuration Options

OptionTypeDefaultDescription
------------------------------------
actionstring'warn'Action on profanity: warn, censor, block, log
detectLeetspeakbooleantrueCatch f4ck, sh1t patterns
normalizeUnicodebooleantrueCatch Cyrillic lookalikes
languagesarray['english']Languages to check
customWordsarray[]Additional words to flag
ignoreWordsarray[]Words to whitelist
onViolationfunction-Custom handler for violations

Actions

warn - Respond with warning

profanityPlugin({ action: 'warn' })
// Bot responds: "Please keep the chat clean."

censor - Replace and continue

profanityPlugin({ action: 'censor', replaceWith: '***' })
// "What the ***" is processed normally

block - Ignore message entirely

profanityPlugin({ action: 'block' })
// Message is not processed

log - Log and continue

profanityPlugin({ action: 'log' })
// Logs violation, processes normally

Custom Violation Handler

profanityPlugin({
  action: 'custom',
  onViolation: async (message, result, context) => {
    // Track repeat offenders
    await trackViolation(message.userId, result.profaneWords);

    // Custom response
    if (getViolationCount(message.userId) > 3) {
      await banUser(message.userId);
      return { blocked: true };
    }

    return { blocked: false, warning: "First warning..." };
  }
})

Platform Examples

Discord Bot

const bot = new OpenClaw({
  platform: 'discord',
  plugins: [
    profanityPlugin({
      action: 'censor',
      detectLeetspeak: true,
      languages: ['english', 'spanish']
    })
  ]
});

Telegram Bot

const bot = new OpenClaw({
  platform: 'telegram',
  plugins: [
    profanityPlugin({
      action: 'warn',
      onViolation: (msg, result) => {
        return {
          reply: `Watch your language, ${msg.username}!`,
          deleteOriginal: true
        };
      }
    })
  ]
});

Slack Bot

const bot = new OpenClaw({
  platform: 'slack',
  plugins: [
    profanityPlugin({
      action: 'log',
      onViolation: (msg, result) => {
        notifyModerators(msg.channel, msg.user, result);
      }
    })
  ]
});

Detection Capabilities

The plugin catches:

  • Direct profanity: Standard bad words
  • Leetspeak: f4ck, sh1t, @$$, b1tch
  • Unicode tricks: Cyrillic а instead of a, etc.
  • Spaced letters: f u c k, s.h.i.t
  • Mixed obfuscation: fü©k, $h!t

Resources

  • npm: https://www.npmjs.com/package/openclaw-profanity
  • GitHub: https://github.com/GLINCKER/glin-profanity/tree/release/packages/openclaw
  • Core library docs: https://www.typeweaver.com/docs/glin-profanity

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 18:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,460
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,438
security-compliance

Glin Profanity MCP

thegdsks
{"answer":"为 AI 助手提供脏话检测工具的 MCP 服务器。适用于批量审查用户内容、审核举报评论、发布前文本脏话分析,或 AI 工作流中的内容审核需求。"}
★ 0 📥 2,538