Publishes the daily foodsby menu to a slack or discord channel.
npm cito install dependencies.npm run buildto package the typescript into a bundle.- Set Environment Variables
- Foodsby (required)
FOODSBY_API: API Base for foodsby interaction.FOODSBY_LOCATION: The number that corresponds to your delivery location in foodsby.
- Slack
SLACK_TOKEN: Slack OAUTH token.SLACK_CHANNEL: Slack channel you want to publish the daily foodsby menu to.
- Discord
- Server Settings > Integrations > Webhooks
- New Webhook
- Copy Webhook URL => '.../webhooks/${ID}/${TOKEN}'
- Set environment Variables
DISCORD_TOKEN: TOKENDISCORD_ID: ID
- Foodsby (required)
- Copy the bundled code into a lambda and make sure all the variables are set.
- Schedule a runtime and enjoy.