https://github.com/conveyal/trevorbot
Where in the world is our team?
https://github.com/conveyal/trevorbot
serverless slack-bot
Last synced: 7 months ago
JSON representation
Where in the world is our team?
- Host: GitHub
- URL: https://github.com/conveyal/trevorbot
- Owner: conveyal
- Created: 2016-09-16T16:14:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T17:30:04.000Z (about 8 years ago)
- Last Synced: 2025-04-13T18:13:34.494Z (12 months ago)
- Topics: serverless, slack-bot
- Language: JavaScript
- Homepage:
- Size: 95.7 KB
- Stars: 12
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Trevorbot
A bot that figures out where a bunch of people are... especially Trevor. Intended for use with AWS Lambda + Slack.
### Configuration
Create a `config.json` file based off of the `config-example.json` file. If a person has a [Nomad List](https://nomadlist.com/) account, be sure to note that. Otherwise, add home locations.
To use with Google Calendar, you'll need to authorize a user that has view access to others' calendars. The way I did this was get a refresh_token by using the [Google Calendar API quickstart script](https://developers.google.com/google-apps/calendar/quickstart/nodejs). Create a `credentials.json` file based off of the `credentials-example.json` file. Also, add a [mapzen api key](https://mapzen.com/documentation/overview/api-keys/).
### Deployment
Have an AWS account setup and credentials stored on your computer. Setup a Slack webhook for the bot.
Install [serverless](https://github.com/serverless/serverless) via `npm i -g serverless`
Then run `serverless deploy`