UNPKG

discord-automod

Version:

Automod system can be implemented in your script easily

28 lines (22 loc) 667 B
# discord-automod An easy to use anti-scamlinks and word filter ### Anti-scamlinks ```js 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 ```js 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!`}) } }); ```