1.1.0 • Published 2 years ago

discord-automod v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

discord-automod

An easy to use anti-scamlinks and word filter

Anti-scamlinks

const filterScamlinks = require('discord-automod');

client.on('messageCreate', async message => {
    if (filterScamlinks(message.content) === true) {
        message.delete()
        message.channel.send({content: `You cannot send scam links here!`})
    }
});

Anti-profanity

const filterWord = require('discord-automod');

client.on('messageCreate', async message => {
    if (filterWord(message.content) === true) {
        message.delete()
        message.channel.send({content: `You cannot use this word here!`})
    }
});