K-Modmail is an open-source Discord modmail bot designed for individual servers, with a quick and easy setup process that should get your new modmail bot running in no time!
NOTE: This is a version intended for my Discord Server, So change the code to your liking!
-
Node.JS installed
-
Discord.JS v12.5.3 library installed (Discord.JS v12.5.3 will soon be discontinued so update it to v13 if you want!)
-
A Discord Bot Application*
-
A main server, and a modmail server with a logging category and channel, and a tickets/modmail category (and their respective IDs)
-
A text editor capable of editing JSON files (default windows notepad works just fine)
*The bot must have PRESENCE INTENT and SERVER MEMBERS INTENT enabled, or else the script will error. It should also be given administrator permissions in the OATH2 category (BOT\BOT PERMISSIONS)
Getting Token: Setting Privileged Gateway Intents:
-
Download the files (if you are hosting on a VPS or some other type of server, upload them to that)
-
Replace the following with your specific bot/server info in config.json
{
"token":"YOUR BOT TOKEN HERE",
"ticketCategoryID":"THE ID OF THE CATEGORY FOR TICKETS TO BE OPENED (MUST BE IN MODMAIL SERVER!)",
"modmailServerId":"ID OF THE MODMAIL SERVER",
"thumb":"LINK TO THE IMAGE TO BE USED FOR MODMAIL EMBEDS",
"modmailLogChannelId":"ID OF THE LOGGING CHANNEL",
"mainServerId":"ID OF THE MAIN SERVER"
}
- Once you have entered all the information above, run the modmail.js file.
[PREFIX IS !!
]
reply
: Reply to a ticket
areply
: Reply to a ticket anonymously
close
: Close the ticket that you are currently responding to
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
If there are any major issues that you need fixed ASAP, join the support server:
[WIP, will be added soon!]
For Help Join My Discord Server