A bot to handle administration tasks in the Discord server
NOTE: Using Twilio's SendGrid to send emails from your account. Free plan limits at 100 emails a day.
- Create file
.env. Doc -> https://www.npmjs.com/package/dotenv - Keys:
TOKEN: Discord bot tokenCLIENT_ID: Discord bot client idSHEETS_ID: google sheet's id ->https://docs.google.com/spreadsheets/d/{SHEETS_ID}/edit#gid=0SENDGRID_API_KEY:https://app.sendgrid.com/guide/integrate/langs/nodejsSENDER: Sender's email address on SendGridROLE_NAME: The role people would get after they pass verificationSERVER_NAME: Your server's nameDOMAIN: The Domain of the email addresses
- Create
google_creds.json - https://theoephraim.github.io/node-google-spreadsheet/#/getting-started/authentication?id=service-account
npm init
npm install
node app.jsIn order to register a command, run
node deploy-commands.js
Linting:
npx eslint --fix
- Andre
- Allen
- n132