A simple discord modmail template that is easy to setup.
- Install
- Optional
- Additional
npm i modmail.js
# for compulsory / required
Please remove the hash after copying these codes
const modmail = require('modmail.js') #
modmail.prefix('BOT_PREFIX') # must defined prefix
modmail.inbox('Inbox_Channel_ID') # and inbox before token
modmail.on('BOT_TOKEN') #
Power Up The Modmail Bot
-
Replace
BOT_TOKENas your discord bot token then replaceInbox_Channel_IDas a channel's ID you wish to receive modmails. -
Replace
BOT_PREFIXas anything you like. -
You're all set ! Now you just have to run the nodejs.
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 :green_tick: to your message
-
Check The Message In Modmail Inbox Channel.
To Reply A User
<PREFIX>reply <USER_ID> <YOUR_MESSAGE> e.g.!reply 123456677544 Hello
Command Breakdown
! - Prefix
reply - Command
123456677544 - User ID
Hello < 2000 Words - message
Having problem ?
- Bot Not Working ?
Make sure you have declare these three things. The Bot will not online if Token is undefined. You won't receive modmail if Inbox Channel Id Is not defined. You won't be able to reply without bot prefix.
-
Didn't receive message message ?
- Inbox Bot does not have permission to send message/react
- User User does not allow private messsage from server members
-
Which Permission The Bot Is Missing ?
- Run
<PREFIX>checkcommand, A List Of Permissions That Are Require Will Be Listed
- Run
we're still working on it
- repl.it - Running But Not 100% Uptime ( With Pings )
- Heroku - Must Verify Credit Card For 24/7 Uptime
APACHE 2.0