santo01614 / ModMail

A Discord ModMail Bot.

Home Page:https://mail.phodit.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModMail

ModMail is a Discord bot which main purpose is to provide users-to-moderators private communication. This bot needs to be hosted, as it is meant for a single Discord server.

Setup

Setting up this bot is pretty easy, just follow the steps below.

  1. Fork and clone this repo.
  2. Create a Discord application and get the bot token.
  3. Create a file called .env in the main directory. Add the following:
    BOT_TOKEN=YOU_TOKEN_GOES_HERE
    HOST=YOUR_HOST(READ_BELOW)
    URL=YOUR_REPLIT_URL

    The host option is only required if Repl.it is going to be used. If so, the value must be REPLIT, if not, feel free to remove that line. If you are using Repl.it, provide the URL too (should look something like this: https://ProjectName--YourUsername.repl.co). Paste that same URL here and click "ADD".

  4. Run npm run setup.
  5. Fill the src/config.ts file.
  6. Run npm run start to start your bot. If you want to use any node runtime such as PM2, run npm run build and then start the process as you would normally do (file prod/index.js).

How does it work?

  • Someone DMs your bot and a thread will be opened inside the specified category.
  • Moderators get notified and start chatting with them via the bot.

Commands

reply {content} - Thread Only
close - Thread Only
set

About

A Discord ModMail Bot.

https://mail.phodit.xyz

License:MIT License


Languages

Language:TypeScript 95.4%Language:JavaScript 4.6%