Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
/ modmail Public archive
forked from modmail-dev/Modmail

ModMail Bot for Discord - DM to contact mods!

License

Notifications You must be signed in to change notification settings

Zacatero/modmail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mod Mail for Discord

This is an open source discord bot made by verixx and improved upon suggestions by the users!

Hosting on Heroku

What is Heroku?

Heroku is a free hosting site that can host many web apps. However, the web apps cannot store any data.
We have made Mod Mail to do exactly that. It was made to be stateless and not store any data in json files or any other storage files.

How do I do it?

If you choose to install the bot using Heroku, you do not need to download anything. In fact, you can set it all up on a phone!
Provided you have your Server ID

GitHub Account

For this to work you will need to make a Github account (If you don't have one already). After you have made your Github account go to this repository and fork it.

Heroku Account

After making a Github account, you need to make a Heroku account. Make one at Heroku's Website and then follow the steps below:

Heroku Tutorial

Setting it up

  1. Create a Bot Application for Discord
  2. Head over to the applicatons page.
  3. Click “new application”. Give it a name, picture and description.
  4. Click “Create Bot User” and click “Yes, Do It!” when the dialog pops up.
  5. Copy down the bot token. This is what is used to login to your bot and will be used at Step 8, or 11 if you are setting up on your PC.

Here's a GIF to explain the first 5 steps GIF to explain the first 5 steps

  1. Create anapplication on Heroku (this is pretty straightforward)
  2. Go to your application settings and find the config vars section.
  3. Create a config variable, name the key to be TOKEN and the value to be your bot token as retrived from step 5.
  4. Create another config variable, name the key to be GUILD_ID and the value to be the ID of your Server.
  5. Create yet another config variable, name the key to be PREFIX and the value to be the bot prefix you want.
  6. Find the deploy section on your applications dashboard.
  7. In deploy method, click on the GitHub option and link your Github account to Heroku.
  8. Now select the forked repository and click deploy application
  9. Go to the resources tab and turn on the worker.
  10. If you want, you can go over and check the application logs to see if everything is running smoothly.
  11. Once the bot is online in your server, do [your prefix]setup and you are good to go!
    You can add the bot to your server with this tool. Your Client ID is retrived from the applicatons page

Now you should be done. Go over to discord and try it out!

Self-Hosting on your own PC or VPS

Installing Python

This is a bot written in the python programming language. So if you don't already have python correctly installed, you must install it.

Installing the Bot

Now that you have python installed, you are good to go. Follow the steps below for a successful installation.

  1. Look at Steps 1 to 5 of Setting up on Heroku
  2. Download the bot from the github page.
  3. Extract the zip file to the desktop or wherever you want.
  4. Open your terminal or cmd.
  5. Navigate to the bot folder. i.e cd desktop/modmail-master
  6. Install all the requirements: pip install -r requirements.txt
  7. Run the bot with python bot.py or on mac or linux python3.6 bot.py
  8. Enter your token and server ID in the wizard.
  9. Once the bot is online in your server, do [your prefix]setup and you are good to go!
    You can add the bot to your server with this tool. Your Client ID is retrived from the applicatons page

Commands

Parameters are either [] or <>.
[] - Optional Parameters
<> - Mandatory Parameters
Do not include these while typing your command
Include your prefix in front of every commmand

Command Description Usage
setup Sets up your server for Mod Mail ADMINISTRATOR Required setup [modrole]
reply Sends a message to the current thread reply <message...>
close Closes the current thread and deletes the channel close
disable Closes all threads and disables modmail for the server. ADMINISTRATOR Required disable

If you do use the bot, a star on this repository is appreciated ;)

About

ModMail Bot for Discord - DM to contact mods!

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 100.0%