Code Monkey home page Code Monkey logo

fejao's Introduction

Mod Mail for Discord

This is an open source discord bot made by kyb3r 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!

Heroku Account

You need to make a Heroku account. Make one at Heroku's Website and then follow the steps below:

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

  1. Click this button: Deploy
  2. Input some random name for your app, the heroku app name is not important.
  3. Input your bot token from step 5 into the TOKEN field.
  4. Put the ID of your Server into the GUILD_ID field.
  5. Put the command prefix you want in the PREFIX field. e.g ? The default prefix is m.
  6. Click the deploy app button and wait for it to finish.
  7. Click manage app and go into the resources tab.
  8. Now turn on the worker by clicking the pencil icon.
  9. If you want, you can go over and check the application logs to see if everything is running smoothly.
  10. 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!

Make sure to give the bot manage channel permissions!

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

Updating your ModMail (Heroku)

  1. Go to https://github.com/<YOUR GITHUB USERNAME>/modmail/compare/master...kyb3r:master?quick_pull=1&title=Updating
  2. Click Create pull request
    image representation
    It should look exactly like the image
  3. Scroll all the way down till you see the following image
    this
  4. Click Merge pull request
  5. Go back to Heroku and click Deploy
  6. Click Deploy Branch

Create an issue if you need help

IF STEP ONE GIVES A 404 ERROR

You would have to redo from step 6 of this

Thanks For Using This Bot!

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

Dont copy this code or incorporate the code into your own bot without permission and/or credit.

fejao's People

Contributors

kyb3r avatar fourjr avatar lionixworf avatar isaacli430 avatar xaos1502 avatar ravener avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.