Modmail.js is an advance Discord Modmail template.
- Performant
- Build-in Plugins
- Easy To Setup
npm i modmail.js@latest
const modmail = require('modmail.js')
modmail.on({
token: 'BOT_TOKEN',
inbox: 'INBOX_CHANNEL_ID',
prefix: 'BOT_PREFIX',
message: '@mentions/messages',
inline: true, // inlineReply
})
.then(r=>{
console.log(r)
}).catch(err => {
console.log(err)
})
Getting Started With The Modmail Bot
-
Replace
BOT_TOKEN
as your discord bot token,INBOX_CHANNEL_ID
as a modmail inbox channel's id andBOT_PREFIX
as your bot prefix -
You're all set ! Now you just have to run the the bot.
e.g node index.js
,e.g node bot.js
.
-
Allow private message from server members
default:allowed
-
DM ( Direct Message ) Your Bot And It will react โ to your message
-
Check Your Inbox Channel, See If There's Anything
To Reply A User
<PREFIX>reply <USER_ID> <YOUR_MESSAGE
> e.g.!reply 123456677544 Hello
Please Read Our Docs To Learn More.
Use plugins to improve user experience
This project is available as open source under the terms of the Apache License 2.0