Click here to use the new TypeScript version.
The best Discord Moderation bot that I have ever created, all made with discord.js version 14 and discord.js-v14-helper. This project requires MongoDB to connect to the database, so make sure to get a MongoDB URI! You can create many commands as you want to improve your bot, just make sure that your bot won't go crazy!
This project is made for single guild, and not a multi-guild one. I currently have a problem with Slash commands permissions, so I used role_perms property instead of them. If you have a solution, create a pull request.
Firstly, install package-lock.json
file:
npm init -y
Then install the required dependencies:
npm i discord.js@14 discord.js-v14-helper os ms uuidv4 axios mongoose
The setup for now is for Visual Studio Code users only. If you are a repl.it user and non-beginner programmer, you can read the setup below but you have to edit the Environment processing for MongoDB and the bot token.
-
- Install Visual Studio Code.
-
- Install node.js.
-
- Open command propmt and then type
node -v
and make sure that you have installed node.js version 16.9.0 or above.
- Open command propmt and then type
-
- Download the project and extract the folder from .zip folder to a normal folder.
-
- Open the folder on a new VSCode tab.
-
- Go to
config/main.js
and edit the properties of each file. Also make sure to checkconfig/data.json
because it is also a configuration file.
- Go to
-
- Open terminal and then type
node index.js
ornode .
.
- Open terminal and then type
-
- Enjoy.
Due to repl.it rate-limits problems and unsecurities, we recommend other hosting services that are cool and easy to use.
- SpeedyHosting [NO LONGER EXISTS]
- Fluid Nodes
- Crystal Nodes
- Pylex Nodes
If you want to watch a YouTube video how to setup your bot in SpeedyHosting, click here. For Fluid Nodes, Crystal Nodes, and Pylex Nodes, there are no tutorials recorded by T.F.A.
If you have an issue, do not start to panic! Create an issue right here and wait for me or some people to respond to your errors. Please remember to not create an issue that includes "it's broken", "not working at all", or other similar comments like these, thank you.
Project made with ❤ by T.F.A#7524. Make sure to credit to me when you are using this project, thank you.