Skip to content

seanbudd/discord-email-verification

Repository files navigation

Info

Built on SMPT.js, KeyV and discord.js

Setup

Requires node 16.11.0+, npm 8.0.0 and sqlite.

Run npm install .

Config

Make a copy of config.json.template named config.json. You can alternatively use process.env for the same data.

{
    "DATABASE_URL": "sqlite://example.db", // sqlite db
    "DISCORD_LOGIN_API_TOKEN": "", // https://discordjs.guide/preparations/setting-up-a-bot-application.html#your-token
    "ROLE_NAME": "Member",
    "CLIENT_ID": "", // copy from the bot account (eg DMs window icon)
    "GUILD_ID": "", // copy from server
    "WELCOME_CHANNEL_ID": "", // copy from channel
    "MEMBER_JOIN_MESSAGE": "Email address cannot be found, join via , otherwise ask for help in #welcome",
    "EMAIL_SUBJECT": "Discord Verification",
    "FROM_EMAIL": "",
    "EMAIL_REGEX": ".*@.*",
    "EMAIL_HOST": "", // SMTP host
    "EMAIL_PWD": ""
}

Make a copy of members.json.template named members.json. The value for the members key should contain an array of email addresses of those allowed to join your Discord server

Hosting

start the bot server by running

>>> node index.js

or

>>> npm start

About

A simple generic bot for email verification on discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published