Michael-J-Scofield / discord-anti-spam

A simple discord anti spam node.js module to prevent spam on your discord server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mutes not working at all

cayoten opened this issue · comments

On the mute event, it just completely forgets to mute and skips over it. (with MuteEnabled: true,)

const AntiSpam = require('discord-anti-spam');
const antiSpam = new AntiSpam({
warnThreshold: 4,
kickThreshold: 8,
banThreshold: 12,
muteThreshold: 6,
maxInterval: 5000,
maxDuplicatesInterval: 5000,
muteRoleName: "Muzzled",
warnMessage: '{@user}, Please stop spamming.',
muteMessage: '{user_tag} has been muted for spamming.',
kickMessage: '{user_tag} has been kicked for spamming.',
banMessage: '{user_tag} has been banned for spamming.',
errorMessages: true,
kickErrorMessage: "Could not kick {user_tag} because of improper permissions.",
banErrorMessage: "Could not ban {user_tag} because of improper permissions.",
muteErrorMessage: "Could not mute {user_tag} because of improper permissions or the mute role couldn't be found.",
maxDuplicatesWarning: 7,
maxDuplicatesKick: 10,
maxDuplicatesBan: 10,
maxDuplicatesMute: 9,
exemptPermissions: ["MANAGE_MESSAGES"],
ignoreBots: true,
warnEnabled: true,
kickEnabled: false,
muteEnabled: true,
banEnabled: false
});

commented

Yes, as you can see it's currently on the develop branch. The @Scraayp's PR wasn't entirely complete. Anyway, thank you for your report, it will be fixed.

Yeah i am working testing ect..
Use for now the master branch instead

This will be fixed in the next update

i have this problem 2

when do you think you could get it fixed? thanks for making this stuff tho i realy like it

This will be fixed in the next update

When the update will be? We don't have a eta at the moment!

did this issue get updated yet or am I just dumb and I am just having problems with this command

Mute hasn't been uploaded to npm yet

So it's prob not gonna work