GithubHelp home page GithubHelp logo

nathanjreidy / discord-gsheet-zoom-automation-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.12 MB

The purpose of this Discord Bot is to automate the onboarding process of users into a DAO, and to identify which users have not booked an onboarding call.

TypeScript 95.43% Shell 4.57%

discord-gsheet-zoom-automation-bot's Introduction

About

The purpose of this bot is to automate the onboarding process of users into the DAO.

Set Up

You must create a Discord Bot account, create a new application, and invite your bot to the server you want it to run in. To do this, follow the instructions here: https://www.freecodecamp.org/news/create-a-discord-bot-with-javascript-nodejs/

Create .env file and complete the required environment variables specified in .env.example.

The bot is currently hosted on Heroku. The same environment variables in your .env file must also be specified within Heroku's config settings via the Heroku dashboard.

The flow works like this:

  1. User is manually selected as a VIP member and sent the Discord server link via Twitter DM to join the DAO.

  2. User books a Calendly onboarding call via the Discord channel link.

  3. User's Calendly form data is automatically sent to a Google Sheet. For this to work, the Calendly event settings must collect this data, in this exact order:

    CalendlyEventSettings

    Next, create a Google Sheet for the Calendly form data to be stored in, with these exact headers, in this order (Name, Email Address, Discord Username, Twitter Handle, Zoom Call Start Time):

    GSheetOnboardingData

    Finally, create a Zapier account with the following trigger/zap, to send the Calendly form data to the above Google Sheet:

    CalendlyGSheetZap

    ZapierAction

  4. Discord admin uses Discord Bot commands in the channel that has bot permissions, to view Discord users who have not booked a call (!notbooked) and to send those users a reminder message (!notify) (process.env.CHANNEL_NAME_WITH_BOT_PERMISSION must be specified, and the bot will only work in that channel).

Architecture

ArchitectureDiagram

Running the Bot

To run locally:

npm install
npm start

To deploy to Heroku for the first time, follow the instructions here: https://dev.to/vishnudileesh/host-nodejs-discord-bot-for-free-1hg3

To re-deploy manually:

npm run deploy

Bot Commands

  • !help - returns a list of valid commands.
  • !notbooked - returns which Discord users have not booked an onboarding call.
  • !notify - sends a message to each Discord user without a booked onboarding call, reminding them to book.

Useful Guides to Re-Create this Bot from Scratch

discord-gsheet-zoom-automation-bot's People

Contributors

nathanjreidy avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.