Answers for "spam system discord.js"

0

spam system discord.js

client.on("message", (message) => {
//let's use something like a spam variable for 10 or more messages sent within 5000ms
if(message.content === spam) {
    message.reply("Warning: Spamming in this channel is forbidden.");
    console.log(message.author.username + " (" + message.author.id + ") has sent 10 messages or more in 5 seconds in " + message.channel.name + ".");
  }
});
Posted by: Guest on November-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language