2.4 KiB
2.4 KiB
🛠️ Setting up the bot
Note: This bot is run on your own machine or a server.
To keep it online, you need to keep the bot process running.
Terminology
- Main server (or main guild) is the server where users will be contacting modmail from
- Inbox server (or inbox guild, or mail guild) is the server where modmail threads will be created. In a "single-server setup" this is the same server as the main server.
- A modmail thread is a channel on the inbox server that contains the current exchange with the user. These threads can be closed to archive them. One user can only have 1 modmail thread open at once.
- A moderator, in modmail's context, is a server staff member who responds to and manages modmail threads
- A user, in modmail's context, is a Discord user who is contacting modmail by DMing the bot
Prerequisites
- Create a bot account through the Discord Developer Portal
- Invite the created bot to your server
- Install Node.js 10, 11, or 12
- Node.js 13 is currently not supported
- Download the latest bot version from the releases page and extract it to a folder
- Make a copy of the file
config.example.ini
in the bot's folder and name the copyconfig.ini
Two-server setup
In this setup, modmail threads are opened on a separate inbox server.
- Create an inbox server on Discord
- Invite the bot to the inbox server.
- Open
config.ini
in a text editor and fill in the values - Make sure the bot has the
Manage Channels
,Manage Messages
, andAttach Files
permissions on the inbox server - 🏃 Start the bot!
- Want to change other bot options? See 📝 Configuration
Single-server setup
In this setup, modmail threads are opened on the main server in a special category.
- Open
config.ini
in a text editor and fill in the required values.mainGuildId
andmailGuildId
should both be set to your server's id. - On a new line at the end of
config.ini
, addcategoryAutomation.newThread = CATEGORY_ID_HERE
- Replace
CATEGORY_ID_HERE
with the ID of the category where new modmail threads should go
- Replace
- Make sure the bot has
Manage Channels
,Manage Messages
, andAttach Files
permissions in the category - 🏃 Start the bot!
- Want to change other bot options? See 📝 Configuration