Discord modmail bot that uses mongo DB. Get in touch with the server members without having to actually do ;) The user sends a message to the bot and the bot makes the rest.
- Send the user message to a channel (also images and files ;) )
- Answer people using a command
- Block users so they won't use the bot, and unblock them if you want
- Pause tickets (in progress)
- Add people into tickets, so you can talk with them.
- Log everything in a logs channel
Suggestions: Making the help command, making the pause and unpause ticket commands, updating to slash commands.
- Fork or clone the repo
- Make your changes
- Test it and open a pull request
The setup of this bot is very simple, just follow the steps
- Create an application in Discord Developer Portal
- Create a bot and copy the token
- Login or register into Mongo DB
- Create a cluster and complete the configuration
- Get the connection url by pressing on
connect < connect your application
Note: Go to discord settings < advanced < enable Developer mode
- Go to the server the bot will be in
- Right click on the sevrer's name and copy the ID
- Create a category where the tickets will be created in
- Copy the category ID
- Create a logs channel and copy the ID
- go to the server the bot is in
- Add 3 emojis (blocked, correct, paused) images above (If you don't want to use different ones, add the images that you will find inside emojis folder
- Type \ and the emoji
- You will get something like <a:name:123456678>
- copy them
.env file
- Paste the token and the mongoDB url into
example.env
- Rename
example.env
to.env
config.json file (inside json folder)
- Fill the parameters with the IDs that you copied in the previous steps
emojis.json (inside json folder)
- Paste each ID in it's respective slot
- Open the console and run
npm install
- Type
node .