- Load Config from env
- add formatter, automatically format on commits
- add linter
- make tsconfig stricter
-
add exponential backoff to DB availability check(no longer needed as the app now waits until the DB container is healthy) - define models in a way better suited to typescript
- use only one logger library
- add super sexy config mechanism
- Add logic create food
- vote after creation
- check that food does not exists, else vote
- Add logic for getting food
- Add logic to vote for food
- only one vote per food and user
- Add logic to calculate results
- for each food, get list of user
- then distinct user by starting the smallest group
- Add bot logic
- Create Bot
- Create Card
- Update Card
- Create Conversation
- Update Conversation
- typedi einbauen
https://dev.to/azure/beginners-guide-to-ms-teams-development-2-bots-590m
This project used prettier for code formatting. It is recommended to install the prettier extension for you IDE and enable the "on 'reformat code' action" option in the settings.
The config file is expected to be called "configuration.yml" and lie in the root of the repo.
You can use env vars to pass some values (like secrets) into the config. Use the following
syntax ${NAME_OF_YOUR_ENV_VAR}
and the with the name of the env var specified within.
You need a test account to use the bot in teams. See below on how to create one.
- for viewing:
docker-compose up
- for developing
docker-compose run --service-ports --rm lunchbot "yarn dev"
- Install the "Developer Portal" app for your account in Teams
- Create a new bot in the "Tools" tab
- Create a new app in the "Apps" tab
- Under "App features" add a bot to the app, select your previously created bot