UNPKG

discordjs-automod

Version:

A package to easily add some extra auto-moderation protection to bots

24 lines (16 loc) 483 B
# discordjs-automod ## Installation `npm install discordjs-automod` ## Example Usage ```js const Discord = require("discord.js"); const automod = require("discordjs-automod"); const bot = new Discord.Client(); const client = new automod.Client(bot); const guild = client.getGuild(bot.guilds.cache.first().id); bot.on("message", async msg => { guild.AntiInvite.check(msg) != null ? msg.channel.send(guild.AntiInvite.check(msg)) : null; }); ```