Nomenclature Predictably Misunderstood

    discord-stop-spam-package

    1.0.1 • Public • Published

    The Discord Stop Spam is a very simple module to prevent spam in your Discord server.

    It's very simple to use. A little example :

    const Discord = require("discord.js"); // Require the Discord.Js module
    const client = new Discord.Client({ disableMentions: "everyone" }); // Create a new Discord Client
    const DiscordStopSpam = require("discord-stop-spam"); // Require the module
    
    client.on('message', async(message) => { // Detected message
      await DiscordStopSpam.logAuthor(message.author.id); // Save message author
      await DiscordStopSpam.logMessage(message.author.id, message.content); // Save message content
      const SpamDetected = await DiscordStopSpam.checkMessageInterval(message); // Check sent messages interval
      if(SpamDetected) { // If SpamDetected
          await DiscordStopSpam.warnUserEmbed(message); // Warn User
      };
    });
    
    client.login("Some token"); //Place your bot token here

    Image :

    Keywords

    Install

    npm i discord-stop-spam-package

    DownloadsWeekly Downloads

    7

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    3.34 kB

    Total Files

    3

    Last publish

    Collaborators

    • retr0s