From dabfd6a4638f304f8037f75cde3a26d5e66fb47d Mon Sep 17 00:00:00 2001 From: aeither <36173828+aeither@users.noreply.github.com> Date: Tue, 10 Oct 2023 01:02:06 +0300 Subject: [PATCH] @caloriecounterlive_bot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @caloriecounterlive_bot – a Mini App that helps you track your daily calorie intake. The user is presented with an interface where they can select food items, adjust the amount, customize with more items to calculate the total calories, and finally add the result back to the chat. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 156f1e1..29b580d 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,22 @@ At this point, you should be able to see a sticky blue button at the bottom to s # Instructions +## Calorie Counter App + +Get the `.env` variables from edamam API website. + +```text +npm install +``` + +```text +npm run dev +``` + +## Bot Setup + Open @BotFather and create a new bot. -Copy the bot token and go to the calorie-counter-bot repository to update the .env TELEGRAM_BOT_TOKEN with the token for local development and TELEGRAM_BOT_TOKEN_LIVE for production. +Copy the bot token and go to the calorie-counter-bot repository to update the `.env` `TELEGRAM_BOT_TOKEN` with the token for local development and `TELEGRAM_BOT_TOKEN_LIVE` for production. You can choose to host it on whatever server you like. The server I used, which I also recommend, is Deno Deploy. As a requirement, Deno should be installed on your system.