Anti Spam Discord

anti spam discord
const antispam = require(‘discord-anti-spam’);
const Discord = require(‘discord.js’)
const client = new Discord.Client();
const config = require(‘./config.json’);

const size = config.colors;
const rainbow = new Array(size);

for (var i=0; i<size; i++) {
var red = sin_to_hex(i, 0 * Math.PI * 2/3); // 0 deg
var blue = sin_to_hex(i, 1 * Math.PI * 2/3); // 120 deg
anti spam discord best of anti spam discord
var green = sin_to_hex(i, 2 * Math.PI * 2/3); // 240 deg

rainbow[i] = '#'+ red + green + blue;
}

function sin_to_hex(i, phase) {
var sin = Math.sin(Math.PI / size * 2 * i + phase);
var int = Math.floor(sin * 127) + 128;
var hex = int.toString(16);

anti spam discord informational anti spam discord
return hex.length === 1 ? '0'+hex : hex;
}

let place = 0;
const servers = config.servers;

function changeColor() {
for (let index = 0; index {
client.user.setGame(“%help-se|| Rainbow bot”)
console.log(`Logged in as ${client.user.username}!`);
if(config.speed < 10){console.log("The minimum speed is 60.000, if this gets abused your bot might get IP-banned"); process.exit(1);}
setInterval(changeColor, config.speed);
});

anti spam discord best of anti spam discord
client.login(config.token);
console.log(`Hello from {user}!`);
antispam(client, {
warnBuffer: 3, // Maximum ammount of messages allowed to send in the interval time before getting warned.
maxBuffer: 5, // Maximum amount of messages allowed to send in the interval time before getting banned.
interval: 2000, // Amount of time in ms users can send the maxim amount of messages(maxBuffer) before getting banned.
warningMessage: "please stop spamming!", // Message users receive when warned. (message starts with '@User, ' so you only need to input continue of it.)
banMessage: "has been hit by ban hammer for spamming!", // Message sent in chat when user is banned. (message starts with '@User, ' so you only need to input continue of it.)
maxDuplicatesWarning: 7,// Maximum amount of duplicate messages a user can send in a timespan before getting warned.
maxDuplicatesBan: 10, // Maximum amount of duplicate messages a user can send in a timespan before getting banned.
anti spam discord informational anti spam discord
deleteMessagesAfterBanForPastDays: 7, // Deletes the message history of the banned user in x days.
exemptRoles: ["Moderator"], // Name of roles (case sensitive) that are exempt from spam filter.
exemptUsers: ["MrAugu#9016"] // The Discord tags of the users (e.g: MrAugu#9016) (case sensitive) that are exempt from spam filter.
});

// Rest of your code
});
anti spam discord

Gta3 Helicopter Cheat

Skyrim Mod Wet And Cold