Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macrusher/slack-foodbot
Automating lunch with your team since 2016 :)
https://github.com/macrusher/slack-foodbot
bot lambda slack
Last synced: about 1 month ago
JSON representation
Automating lunch with your team since 2016 :)
- Host: GitHub
- URL: https://github.com/macrusher/slack-foodbot
- Owner: MacRusher
- Created: 2017-03-25T18:55:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T20:37:26.000Z (about 2 years ago)
- Last Synced: 2024-04-14T19:47:21.218Z (10 months ago)
- Topics: bot, lambda, slack
- Language: TypeScript
- Homepage:
- Size: 646 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FoodBot for Slack
> Automating lunch with your team since 2016 :)
Slack bot using AWS Lambda (with Serverless) to handle daily food newsletter, inquiries about meals and managing company lunch trips.
**Probably not very useful for you if you're not eating near Podwale 7 in Wrocław (Poland)**, but still may be some inspiration to create something similar
### Installation
1. Clone repository and `npm install` all dependencies.
1. Configure your AWS credentials according to [Serverless docs](https://serverless.com/framework/docs/providers/aws/guide/credentials/).
1. Tweak data in `serverless.yml` and `foodletter/handlers.ts`.
1. Deploy with `npm run full-deploy`.
1. Register Facebook app. No special requirements for it, we'll just need app's access token to fetch data.
1. Create Slack bot for your workspace.
1. Set environment variables for your deployed Lambda in AWS Console:
- FACEBOOK_APP_ID - Id of your Facebook app
- FACEBOOK_APP_SECRET - FB app secret - can be found in developer panel
- SLACK_BOT_TOKEN - Bot token from Slack settings
- SLACK_FOOD_CHANNEL - Channel where FoodBot will post messages (Your bot must be invited to this channel!)