1.0.0 • Published 11 months ago

@onurege3467/discord-smart-mod v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

@onurege3467/discord-smart-mod

Gelişmiş, tamamen konfigüre edilebilir Discord moderasyon sistemi. Spam, küfür, link, caps, mention ve emoji spamini engeller. Gerekirse kullanıcıyı doğrulama koduyla test eder.

Özellikler

✅ Spam ve tekrar mesaj tespiti
✅ Link ve küfür engelleme
✅ DM ile doğrulama kodu gönderimi
✅ Caps lock ve emoji spam kontrolü
✅ Akıllı timeout stratejisi
✅ Rollere göre muafiyet sistemi

Kurulum

npm install @onurege3467/discord-smart-mod

Kullanımı

const { Client, GatewayIntentBits } = require("discord.js");
const smartMod = require("@onurege3467/discord-smart-mod");

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });

smartMod(client, {
  bannedWords: {
    enabled: true,
    list: ["örnek"],
    action: "warn"
  }
});

client.login("YOUR_TOKEN");

Varsayılan ayarları

{
    "thresholds": {
      "duplicateMessages": 3,
      "mentionSpam": 5,
      "emojiSpam": 8,
      "capsLockPercent": 80
    },
    "timeouts": {
      "base": 30,
      "max": 300,
      "strategy": "doubling"
    },
    "verification": {
      "enabled": true,
      "codeLength": 6,
      "timeoutSeconds": 60
    },
    "bannedWords": {
      "enabled": true,
      "list": ["küfür", "spamlink"],
      "action": "timeout",
      "timeoutSeconds": 60
    },
    "linkDetection": {
      "enabled": true,
      "allowList": ["discord.gg", "youtube.com"],
      "blockList": ["corn", "tiktok.com"],
      "action": "warn"
    },
    "actions": {
      "onSpam": "timeout",
      "onVerificationFail": "kick"
    },
    "exemptRoles": ["rol1id", "rol2id"],
    "loggingChannelId": ""
  }
  
1.0.0

11 months ago