Automatically delete messages that contain bad links and permanently mute the user for doing so.
This code can work as a standalone bot, or it can be added to your existing discord.js bot code.
Get a list of harmful links either through an API or provided JSON file.
Instructions of how to set up both of the bots can be found below, and in each of the code folders. If you have any issues with setting up this code as a standalone bot, or merging it into your existing code, feel free to open an issue and I will be happy to assist
Note: I will not provide direct instructions on how to merge this code with your existing code, however I will provide advice in issues if needed.
discord.js v13.3.1
& node.js v16.3.0
.View channels
, Manage roles
, Send messages
, Manage messages
, Read message history
(The bot will work if the Administrator permission is granted, but this is not recommended).npm install
.node index.js
in your terminal.npm install
.node index.js
in your terminal.Credits: