Chiroyce1 / ModBot

A Discord bot for moderation

Home Page:https://chiroyce1.github.io/ModBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModBot

A Discord bot for moderation.

Run on Repl.it

To use:

  1. Clone this repository (or click "Run on Replit" to host it in the cloud for free)
  2. Create a new Discord Application, and make sure it is a bot. Reset its token and save it somewhere safe. If you aren't sure how to do this, follow the official discord.js guide. Then add it to your server
  3. Create a .env file with the following variables

⚠️ NOTE: If you're running this on Replit, you have to use Secrets and environment variables instead of a .env file.

TOKEN=
GUILD_ID=
CLIENT_ID=
MOD_CHANNEL=

Where the GUILD_ID is the ID of the server you want the bot in, CLIENT_ID is the ID of your Discord Bot, MOD_CHANNEL is the ID of the channel you want the reports to be sent to.

Then run npm run start (or node . -r, or press then run button on Replit) to run the bot. You should see it online on the server

image



  1. Now, right click any message and go to the Apps section in the context menu, you should see a new app called "Report", click that to report the message to the following channel (as specified in the env variables)

You should now see a message in the moderation channel.

Tip: Make sure the moderation channel is only visible to select members of your server that are "moderating" it.

About

A Discord bot for moderation

https://chiroyce1.github.io/ModBot

License:MIT License


Languages

Language:JavaScript 98.2%Language:Nix 1.8%