Giter Site home page Giter Site logo

lunch-bot's Introduction

lunch-bot

lunch-bot-icon

Deploy

This is a Slack bot that parses the Sparkbox lunch Google Sheet and reminds us who is on duty for the upcoming Friday lunch.

To run the app there are several ENV variables that you need to set:

sheetUrl

URL to the Google Sheet you'll be using with your team. Here's a sample Sheet you can copy to start your own.

sheetID

ID of the Google Sheet you want to parse. In our sample Sheet, the ID is 1fZXtKnxwcxP4GWGMRFtGun1VOnDYuiAgAR_yWlgEx_o.

slackToken

The Slack bot token you received when installing and configuring the lunch-bot in Slack Bots

groupID

Optional: The ID of the Slack group to alert.

serviceEmail and sheetPem

This is an email and public key you generate for lunch-bot to use in reading via the Google Sheets API. To generate your serviceEmail:

  1. Create a project in Google Developer Console, for example: "Sheets App".
  2. Enable Drive API for project under APIs & auth > APIs.
  3. Create service auth credentials for project under APIs & auth > Credentials > Create new Client ID: Service account.
  4. Collect the listed service email address.
  5. Regenerate and download the P12 key.
  6. Convert the .p12 file into .pem format:.
openssl pkcs12 -in *.p12 -nodes -nocerts > sheets.pem

NOTE: when prompted for password, it's notasecret

Finally, share the Sheets document to service email address using the Share button on your sheet.

Thanks to the google-sheets-api npm module for providing the instructions for serviceEmail and sheetPem.

lunch-bot's People

Contributors

cromwellryan avatar dflynn15 avatar robtarr avatar stfs avatar

Watchers

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