Skip to content

Marcel2603/LunchBot

Repository files navigation

Lunchbot

Todos

  • 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

Links

https://dev.to/azure/beginners-guide-to-ms-teams-development-2-bots-590m

Developing the app

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.

Configuring the app

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.

Running the app

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"

Creating a bot in Teams

  1. Install the "Developer Portal" app for your account in Teams
  2. Create a new bot in the "Tools" tab
  3. Create a new app in the "Apps" tab
  4. Under "App features" add a bot to the app, select your previously created bot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published