- Download
credentials.json
from https://developers.google.com/sheets/api/quickstart/nodejs - Place it in the root of the project directory
- Grab it from the api.slack.com
- Under 'Your Apps' > lunch-match > OAuth & Permissions
- place in .env as
slackToken=[token]
npm run build
npm run generate-token
- Follow the steps in the console by visiting the link and pasting the code
- It's the end of the URL on a google sheet like https://docs.google.com/spreadsheets/d/[this code]
- Place in .env as
sheetID=[sheetID]
npm run build
to build the codenpm run dryrun
to retrieve from sheets, butconsole.log()
instead of posting to slacknpm run hangs
to actually run and create Slack DM's!