Skip to content
On this page

猹の敏感词

配置文件

yml
############################
#         数 据 库          #
############################
database:
  schema: "cha_plugin"
  # mysql数据库账号密码
  username: "root"
  password: "root"
  # mysql数据库地址端口
  host: "localhost"
  port: "3306"
  share: false
############################
#         系统设定          #
############################
# 默认替换字符
replaceChar: "*"
# 指定敏感词替换
# 注意:首先该字符串必须为单个敏感词
replace:
  # 内部ID,不重复即可
  法克系:
    # 多重匹配,类似的词汇可以使用统一的替换结果
    origin:
      - "FuCk"
      - "FAQ"
      - "花Q"
    # 当配置多行时,可以在结果中随机一个词进行替换
    result:
      - "我爱你"
      - "你真好"
  出去系:
    origin:
      - ""
    result:
      - "请柔软的团成一团出去"
  换妈系:
    origin:
      - "你妈"
    result:
      - "我妈"
# 白名单
whitelist:
  - "曹操"
  - "你妈妈"
  - "替我向你妈妈问好"
# 黑名单
blacklist:
  - "FAQ"
  - "花Q"
  - ""
############################
#         功能设定          #
############################
# 是否忽略大小写 fuCK
ignoreCase: true
# 是否忽略半角圆角 fuck
ignoreWidth: true
# 是否忽略数字的写法 9⓿二肆⁹₈③⑸⒋➃㈤㊄
ignoreNumStyle: true
# 是否忽略中/英文写法 Ⓕⓤc⒦
ignoreTextStyle: true
# 是否忽略重复词 ⒻⒻⒻfⓤuⓤ⒰cⓒ⒦
ignoreRepeat: true
# 是否启用敏感单词检测
# 关闭将不进行敏感词检测
enableWordCheck: true
# 是否启用连续数字检测,检测一长串数字
# [你懂得:12345678]
enableNumCheck: true
# 是有启用邮箱检测
# [楼主好人,邮箱 sensitiveword@xx.com]
enableEmailCheck: true
# 是否启用链接检测
# [点击链接 www.baidu.com查看答案]
enableUrlCheck: true
# 连续数字检测长度
numCheckLength: 8

语言文件

yml
muted: "§c你因为频发触发违禁词而被禁言"