Skip to content

Commit f8adee0

Browse files
authored
oohyeahhh
1 parent cb9ed08 commit f8adee0

File tree

1 file changed

+74
-1
lines changed

1 file changed

+74
-1
lines changed

README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,74 @@
1-
# modmail
1+
# Mod Mail for Discord
2+
This is an open source discord bot made by verixx and improved upon suggestions by the users!
3+
4+
## Hosting on Heroku
5+
**What is Heroku?**
6+
Heroku is a free hosting site that can host many web apps for free. However, the web apps cannot store any data.
7+
We have made Mod Mail to do exactly that. It was made to be *stateless* and not store any data in json files.
8+
9+
**How do I do it?**
10+
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 bot token and your server ID).
11+
12+
### GitHub Account
13+
14+
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](https://github.com/verixx/modmail/fork).
15+
16+
### Heroku Account
17+
18+
After making a Github account, you need to make a Heroku account. Make one at [Heroku's Website](https://heroku.com/) and then follow the steps below:
19+
20+
### Setting it up
21+
22+
1. Create a Bot Application for Discord
23+
2. Head over to the [applicatons page](https://discordapp.com/developers/applications/me).
24+
3. Click “new application”. Give it a name, picture and description.
25+
4. Click “Create Bot User” and click “Yes, Do It!” when the dialog pops up.
26+
5. Copy down the bot token. This is what is used to login to your bot and will be used at step 8.
27+
28+
*Here's a GIF to explain the first 5 steps*
29+
![GIF to explain the first 5 steps](https://i.imgur.com/Y2ouW7I.gif)
30+
31+
6. Create a python application on Heroku (this is pretty straightforward)
32+
7. Go to your application settings and find the `config vars` section.
33+
8. Create a config variable, name the key to be `TOKEN` and the value to be your bot token as retrived from step 5.
34+
9. Create another config variable, name the key to be `GUILD_ID` and the value to be the [ID of your Server](https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-).
35+
9. Create yet another config variable, name the key to be `PREFIX` and the value to be the bot prefix you want.
36+
10. Find the `deploy` section on your applications dashboard.
37+
11. In deploy method, click on the GitHub option and link your Github account to Heroku.
38+
12. Now select the forked repository and click `deploy application`
39+
13. Go to the `resources` tab and turn on the worker.
40+
14. If you want, you can go over and check the application logs to see if everything is running smoothly.
41+
15. Once the bot is online in your server, do `[your prefix]setup` and you are good to go!
42+
You can add the bot to your server with [this tool](https://finitereality.github.io/permissions-calculator/?v=0). Your Client ID is retrived from the [applicatons page](https://discordapp.com/developers/applications/me)
43+
44+
Now you should be done. Go over to discord and try it out!
45+
46+
## Self-Hosting on your own PC or VPS
47+
### Installing Python
48+
49+
This is a self-bot written in the python programming language. So if you don't already have python correctly installed, you must [install it](http://www.ics.uci.edu/~pattis/common/handouts/pythoneclipsejava/python.html).
50+
51+
### Installing the Bot
52+
53+
Now that you have python installed, you are good to go. Follow the steps below for a successful installation.
54+
55+
1. Create a Bot Application for Discord
56+
2. Head over to the [applicatons page](https://discordapp.com/developers/applications/me).
57+
3. Click “new application”. Give it a name, picture and description.
58+
4. Click “Create Bot User” and click “Yes, Do It!” when the dialog pops up.
59+
5. Copy down the bot token. This is what is used to login to your bot and will be used at step 12.
60+
61+
*Here's a GIF to explain the first 5 steps*
62+
![GIF to explain the first 5 steps](https://i.imgur.com/Y2ouW7I.gif)
63+
64+
6. Download the selfbot from the [github page](https://github.com/verixx/modmail/archive/master.zip).
65+
7. Extract the zip file to the desktop or wherever you want.
66+
8. Open your terminal or cmd.
67+
9. Navigate to the bot folder. i.e `cd desktop/modmail-master`
68+
10. Install all the requirements: `pip install -r requirements.txt`
69+
11. Run the bot with `python selfbot.py` or on mac or linux `python3.6 selfbot.py`
70+
12. Enter your token and server ID in the wizard.
71+
13. Once the bot is online in your server, do `[your prefix]setup` and you are good to go!
72+
You can add the bot to your server with [this tool](https://finitereality.github.io/permissions-calculator/?v=0). Your Client ID is retrived from the [applicatons page](https://discordapp.com/developers/applications/me)
73+
74+
If you do use the bot, a star on this repository is appreciated ;)

0 commit comments

Comments
 (0)