Skip to content

Latest commit

 

History

84 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discordmailer

Node.js

General Bot Setup

Visit https://discord.com/developers/applications and login.

Once logged in hit new application in top right corner.

After Creating your new application, in the application settings visit the "bot" tab.

Add a bot.

Once you have created your bot find where it says "token" and copy.

After you have copied your bot token, paste this into the config.json file under "token" or in heroku under token.

Inviting to discord server

To invite your bot to your server go to the application settings, the "General Information Tab" and copy the client ID.

Once the Client ID is copied to clipboard, visit https://discordapi.com/permissions.html

Select the permissions the bot needs (Administrator is fine for this)

Then where it says "Oauth Url Generator" paste the client ID.

The link at the bottom will change and you can visit that invite your bot!

Installing Dependencies

If running locally (not Heroku) dependencies will be needed.

Insure node.js v12+ is installed

To install needed packages run - npm install within directory

Edit Config.json and running bot (if running locally)

Within the config.json change these lines.

prefix - Prefix for Bot Commands

token - Discord Bot Token

host - SMTP Server Host

port - SMTP Host Port

username - SMTP Username

password - SMTP Password

logging - Enables and disables logging

logoutput - File name of the logs

After run node . to start the bot!

About

Send an email with a discord bot.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages