Check for URL spam

NPM Version

Important

Needed permissions are listed below.

Needed permissions:

Admin/Mod Role would be best

We have included a URL checker. If a message contains a URL this will tell the user off. If the user posts more than 3 URLS’s the user will be kicked.

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Usage

To use, is very simple, include the library then call it:

JavaScript
const { discordCheckSpam } = require('./node_modules/bb-dbotbits/discordCheckSpam');

discordCheckSpam();

Allow your own URL (whitelist)

To allow your URL please go to the library and open settings/settings.js and change the following lines:

settings/settings.js
const allowedURL = false; //Change to true
const website = 'https://bytebots.net'; //change your URL

Next up: Purge Messages