Windows
Deploy Modmail on a Windows machine.
Prerequisites
Minimum 2GB of RAM*
At least 2GB available disk space.
Supported Windows version:
Windows 10
Windows 11
Note that while it is possible to run Modmail with even less memory, Windows 10 itself recommend at least 2GB (4GB for Windows 11). This guide assumes the lowest threshold to comfortably run Modmail without possibly running into any resource bottleneck.
It is not recommended to run Modmail with previous versions of Windows such as Windows 7 or Windows 8.1 as they no longer receive important security updates, making your hosted applications significantly more prone to security vulnerabilities.
Dependencies
We will be using the following dependencies:
Chocolatey
Python 3.10
Additional Modmail requirements: GTK for Windows
To install these dependencies, we will be using Powershell.
Search “powershell” in the Windows start menu, right-click on it and then click “Run as administrator”.
Then run each of the following commands:
After that, ensure pip
and pipenv
are installed and updated for Python 3.10 with:
After the above installation has finished, download and install the GTK runtime for Windows by clicking here.
Installing Bot
In any folder location of your choice, Shift+Right Click
and click on Open PowerShell window here
.
In your PowerShell window, run these commands to clone the official Modmail repository locally and cd
into the folder:
Install project dependencies inside Modmail's pipenv with:
Create a new file in the modmail folder named .env
and paste in your environmental variables needed to run Modmail. Refer to the steps in the parent Installation page to find where to obtain these.
Lastly, in your PowerShell window simply enter the command below to run your Modmail bot:
If no error shows up, it means that your Modmail is now running correctly.
Last updated