ModBot
A Discord bot for moderation.
To use:
- Clone this repository (or click "Run on Replit" to host it in the cloud for free)
- 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
- 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
- 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.