Simple Moderation Discord Bot for your discord server built in JavaScript (Node.js) using Yarn and Discord.js v14 Libraries.
The Files you might need to Modify are:
config.js
- Modify your Bot Token, Presences, and moresrc/events.js
- Modify your Welcome Channel ID, Goodbye Channel ID, and Welcome Role IDcommands/mute.js
- Modify your Muted Role IDcommands/unmute.js
- Modify your Muted Role ID
To get Role ID and Channel ID, one must enable Developer mode in Discord Settings, then Right-Click the Role or Channel, then Copy ID.
All can be installed at once through yarn install
if the package.json
file exist.
- Discord.js 14.14.1
- MS 2.1.3
- Canvas 2.11.2
Environment used: Node.js v16
- Purge Messages
- Kick Members
- Ban/Unban Members
- Mute/Unmute Members
- Automatic Delete of Discord Invite Link
To deploy the Discord Bot. First to get your Bot Token at Discord Developer Portal. Then, don't forget to fill your Config Files.
Upload all necessary files into your Hosting. Then Install all the dependencies as shown in the package.json
files.
You can use npm for package manager, but I recommend you to use yarn, as it was faster (In my Opinion)
yarn install
The next one will be executing the main index file
node index.js
And you're done. Enjoy the moderation discord bot!
The Welcome/Goodbye Image is a modified form of Discord Welcome Images by Tomato6966 (The Original Repository was still in Discord.js v13. I modify a little bit to support Discord.js v14)
This Bot also can be paired with Discord Music Bot by ZerioDev. If You do like had Music Bot with an Ability of Moderation and Greeting Members, Just merge the command project and move all of commands in this repository files into their repository: commands/main
. Dont Forget to merge src/events.js
as well.