Skip to content

Dereavy/ModerationBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moderation Bot

Installation:

Acquire a discord token as shown here:

How to get the bot token

Fill in the config.yml

- Bot prefix
- Owner ID
- botToken
- Server ID (in dev mod, right click the server and copy ID)
- moderation log channel name (You should only set this once)

Create the bot:

Create the bot here - Make it a bot user - Not public bot

Finish Installation

Open the folder preferably with Visual Studio Code Integrated terminal or git bash.

In the opened terminal:

Make sure you have npm installed:

  • node -v

Install the required node modules:

  • npm install --save request
  • npm install --save discord.js
  • npm install --save util
  • npm install --save fs
  • npm install --save path

When in the same folder as the index.js, run the bot with the command node . The bot should be running.

Add the bot to your server as shown here:

Tutorial here

Give administrative permissions to the bot

How to use

Let the bot setup it's channels on first launch and configure them as you wish, do not change the name. In any channel you can execute the following commands (default prefix: !):

Command: ! clear <number> <userName>#<discriminator>

The bot will clear the <number> of past messages of that user.

Command: ! warn <userName>#<discriminator> <reason>

The bot will warn the user with the message that follows in it's reason.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published