A setup guide for Patreon-hosted Modmail.
You have chosen to transfer over your existing Modmail bot to Patreon hosting. See below for your current hosting solution’s transfer guide.
Navigate to Heroku Dashboard on the heroku.com website, login if prompted. Choose the Modmail Bot application (does not have the zzz logo).
Click on the Settings tab. Scroll down to the Config Vars section and click on Reveal Config Vars.
The page will display all your Modmail configs. Copy every field and send it back to Patreon Modmail DM.
Note: it must include the token, MongoDB connection string, and guild ID.
If your bot is still running, navigate to the Resources tab. Click on the pencil icon, turn off the worker switch, and press confirm. Otherwise, your bot may send duplicate messages.
Lastly, choose a memorable name for your Logviewer. You will be provided with a log URL under our .modmail.dev domain name. You can choose anything you like (with a few restrictions), if you feel it’s reasonable, then most likely we do too! Note: only 3-16 alphanumeric characters are allowed. Send this to Patreon Modmail DM as well.
Navigate to My Repls on the repl.it website, login if prompted. Choose the Modmail Bot repl (not the logviewer’s).
On the side panel, click on the lock icon (Secret environment variables). Scroll down to the bottom and click Open raw editor.
You will be greeted with a pop-up text box containing your secrets, copy everything in there and send back it to Patreon Modmail DM.
Note: it must include the token, MongoDB connection string, and guild ID.
If your bot is still running, press the Stop button at the top and disable any uptime robots you may have enabled to stop the current bot from running. Otherwise, your bot may send duplicate messages.
Lastly, choose a memorable name for your Logviewer. You will be provided with a log URL under our .modmail.dev domain name. You can choose anything you like (with a few restrictions), if you feel it’s reasonable, then most likely we do too! Note: only 3-16 alphanumeric characters are allowed. Send this to Patreon Modmail DM as well.
Whether you host with a Linux VPS, a Windows Server, a Raspberry PI, or even on your PC, the steps are similar.
cd
command.cat .env
on Linux Terminal or type .env
on Windows CMD).Lastly, choose a memorable name for your Logviewer. You will be provided with a log URL under our .modmail.dev domain name. You can choose anything you like (with a few restrictions), if you feel it’s reasonable, then most likely we do too! Note: only 3-16 alphanumeric characters are allowed. Send this to Patreon Modmail DM as well.
After sending all the details back to the Patreon Modmail DM, we will validate everything you sent us. This process might take a few hours depends on our availability, so please bear with us while you wait. We will contact you when the bot is running or if there are any problems!
This guide is written by taku#3343 with parts taken from the Modmail Wiki.
If you have found any issues with this guide, please report them to me. Thanks ❤️!