Open-source Discord bot that allows you to verify and whitelist emails for your Discord server.
Mailman was made to allow anyone to host their own instance of the bot. This allows you to have full control over the bot and its data.
Node.js 18.18.0 or higher is required.
Package | Version |
---|---|
better-sqlite3 | ^8.6.0 |
discord.js | ^14.13.0 |
nodemailer | ^6.9.5 |
- Clone the repository or use the built JavaScript files through releases.
- Run
npm install
to install the required packages. - Create a
config.json
file in the/src/
folder. - Build the TypeScript files (skip this step if you are using the built JavaScript files).
- Run
node src/index.js
to start the bot.
config.json
{
"token": "your-bot-token-here",
"sender_email": "your-email-here",
"sender_password": "your-email-password-here"
}
Currently, only Gmail is supported.
Note: If you are using Gmail, you will need to enable less secure apps for the bot to be able to send emails.