我已开启支持 Discord,立即加入!
Detoxify
Detoxify 是一款轻量且强大的 AI 聊天审核工具,可将消息分类为多个类别,让你能够精细调整过滤规则。尽管性能出色,它仅占用 不到 150MB 的内存,非常适合服务器和客户端使用。
工作原理
Detoxify 使用 detoxify AI 模型对聊天消息进行分类。每条消息都会被分析,并针对以下类别分配分数:
- 毒性 (Toxicity)
- 严重毒性 (Severe Toxicity)
- 淫秽内容 (Obscene content)
- 威胁 (Threats)
- 侮辱 (Insults)
- 身份攻击 (Identity Attacks)
这些分数允许你配置阈值,从而自定义具体哪些消息会被过滤。
安装
服务器端
-
下载正确版本的 Detoxify 服务器端文件。
-
将 .jar 文件放入你的 plugins 或 mods 文件夹中。
-
启动服务器。
-
配置文件位于:
- Modded platforms:
config/Detoxify
- Plugin platforms:
plugins/Detoxify
客户端
- 下载正确版本的 Detoxify 客户端文件。
- 将
.jar 文件放入你的 mods 文件夹中。
- 任何被判定为有毒的消息将在聊天中被隐藏,但仍会记录以供审查。
- 配置文件位于:
.minecraft/config/Detoxify
权限
此功能仅在 Paper 和 Spigot 上有效;在 Fabric 和 NeoForge 上你需要拥有 OP 权限
- detoxify.notify -> 授予你在玩家被标记时接收通知的权限。
- detoxify.admin -> 授予你接收更新通知的权限
配置选项
此配置同时适用于客户端和服务器端。它允许微调消息阈值和调试选项:
####################################
# #
# Detoxify Configuration #
# #
####################################
# 是否显示调试消息
debug=false
############################
# 数值设置 #
############################
toxicity=0.9
severe-toxicity=0.5
obscene=0.25
threat=-1.0
insult=-1.0
identity-attack=-1.0
############################
# 消息设置 #
############################
player=§c你的消息因违反聊天规则已被移除。
staff=§c%s 的消息已被移除 [%s]
console=§c%s 的消息已被移除 [%s]
Skript 支持
注意:仅在 Spigot 和 Paper 平台上可用
Detoxify 支持与 Skript 集成以实现自定义聊天过滤。它提供了一个表达式,根据消息是否被视为有毒来返回 true 或 false:
is [the] %string% toxic
detoxify %string%
示例
on chat:
if detoxify message is true:
cancel event
send "&c该消息因毒性被阻止!" to player
on chat:
if is the message toxic is true:
cancel event
send "&c该消息因毒性被阻止!" to player
I have opened a support discord, join now!
Detoxify
Detoxify is a lightweight yet powerful AI chat moderation tool that classifies messages into multiple categories, allowing you to finely tune what gets caught by the filter. Despite its performance, it uses less than 150MB of RAM, making it extremely efficient for both server and client use.
How It Works
Detoxify uses the detoxify AI model to classify chat messages. Each message is analyzed and assigned scores for categories such as:
- Toxicity
- Severe Toxicity
- Obscene content
- Threats
- Insults
- Identity Attacks
These scores allow you to configure thresholds and customize exactly which messages are filtered.
Installation
Server
-
Download the correct server version of Detoxify.
-
Place the .jar file in your plugins or mods folder.
-
Start your server.
-
The configuration will be located in:
- Modded platforms:
config/Detoxify
- Plugin platforms:
plugins/Detoxify
Client
- Download the correct client version of Detoxify.
- Place the
.jar file in your mods folder.
- Any messages classified as toxic will be hidden in chat, but still logged for review.
- The configuration will be located in:
.minecraft/config/Detoxify
Permissions
This is only on paper and spigot, on fabric and neoforge you need to be op
- detoxify.notify -> Gives you permissions to receive notifications when a player is flagged.
- detoxify.admin -> Gives you permission to receive update notifications
Configuration Options
This configuration works for both client and server. It allows fine-tuning of message thresholds and debug options:
####################################
# #
# Detoxify Configuration #
# #
####################################
# Whether or not there should be debug message
debug=false
############################
# Value Settings #
############################
toxicity=0.9
severe-toxicity=0.5
obscene=0.25
threat=-1.0
insult=-1.0
identity-attack=-1.0
############################
# Message Settings #
############################
player=§cYour message was removed for violating chat rules.
staff=§c%s's message has been removed [%s]
console=§c%s's message has been removed [%s]
Skript Support
Note: Only available for Spigot and Paper platforms
Detoxify integrates with Skript for custom chat filtering. It provides a single expression that returns true or false depending on whether a message is considered toxic:
is [the] %string% toxic
detoxify %string%
Examples
on chat:
if detoxify message is true:
cancel event
send "&cThat message was blocked for toxicity!" to player
on chat:
if is the message toxic is true:
cancel event
send "&cThat message was blocked for toxicity!" to player
评论 0
登录后参与评分
还没有评论,来抢沙发吧