Giter Site home page Giter Site logo

decampsrenan / slack-meet-generator Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 2.0 1.4 MB

Generate Google Meet rooms from slack !

License: MIT License

Shell 3.00% JavaScript 15.47% TypeScript 81.53%
slack meet-generator google-meet google-meet-automation slack-app

slack-meet-generator's Introduction


Logo

Google Meet Generator

Generate Google Meet links from Slack !
Explore the docs »

Report Bug · Request Feature

This project uses your google account to create event in your calendar in order to get a meet link.

It's a bit hacky because there isn't Google Meet API, but it's been used in my company for more than 1 year at the time of writing this line !

Demo

Installation

yarn install            # Install dev dependencies
cp .env.example .env    # Duplicate the env file and rename it to .env

You can already fill the CALENDAR_EMAIL with your google email account.

Configure a new Google Cloud Platform project

  1. Follow the step 1 here: https://developers.google.com/calendar/quickstart/nodejs. Make sure that you are logged with the google account you used to fill the CALENDAR_EMAIL env in the .env file.
  2. When asked to "Configure your OAuth client", select "Web Server". Fill the callback url with http://localhost
  3. Copy / paste the Client ID and Client Secret in the .env file
  4. Run yarn setup:credentials. When asked for a google account, select the one used in the steps above.
  5. You will probably have a screen with a warning about an app not approved; you can continue with that (because it's your app, I will not steel any data :p )
  6. Accept all permissions
  7. Paste the credentials json inside the CREDENTIAL key in the .env file
  8. Now your server should be able to contact your calendar and create event !

Configure Slack

  1. Go to https://api.slack.com/apps, and click "Create New App"
  2. Fill the name with what you want, and select the workspace in which you want to add the Meet Generator.
  3. On the new page, in the "Add features and functionality" section, click on the "Slash Command" card
  4. Click on "Create New Command"
  5. Fill the informations with what you want, and make sure that the "Request URL" is the url of the server on which you have this project running, or at least an ngrok if you want to test it locally; append /api/slack-handler to this endpoint.
  6. Check "Escape channels, users, etc...", and click "Save"
  7. Go back to "Basic Information", and open the "Install your app" section.
  8. Click on the "Install to Workspace" button to install it
  9. Now you should be able to type /meet on every channel of your workspace !

Running the app

# development
yarn start:dev

# Prod
yarn build
yarn start:prod

slack-meet-generator's People

Contributors

decampsrenan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.