Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

TFAGaming/DiscordJS-Moderation-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordJS-Moderation-Bot

The advanced Discord Moderation bot built with discord.js v14.

No longer supported!

Click here to use the new TypeScript version.

DiscordJS-Moderation-Bot

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!

Warning

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.

Setup the project

Dependencies installation:

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

Start the project

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.

    1. Install Visual Studio Code.
    1. Install node.js.
    1. Open command propmt and then type node -v and make sure that you have installed node.js version 16.9.0 or above.
    1. Download the project and extract the folder from .zip folder to a normal folder.
    1. Open the folder on a new VSCode tab.
    1. Go to config/main.js and edit the properties of each file. Also make sure to check config/data.json because it is also a configuration file.
    1. Open terminal and then type node index.js or node ..
    1. Enjoy.

Hosting

Due to repl.it rate-limits problems and unsecurities, we recommend other hosting services that are cool and easy to use.

  1. SpeedyHosting [NO LONGER EXISTS]
  2. Fluid Nodes
  3. Crystal Nodes
  4. 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.

Issues

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.