TooGooToGo-Bot is a tool that notifies you about the availability of your favorite stores. It sends notifications through Telegram or Windows notifications.
TooGooToGo-Bot is a tool designed to help you stay updated on the availability of your favorite stores on the Too Good To Go platform. It provides notifications through Telegram or Windows notifications, allowing you to quickly find and purchase food items before they are gone.
- Node.js (>=16.x.x)
git clone https://github.com/Achaak/toogoodtogo-bot.git
cd toogoodtogo-bot/
- Make a copy of the sample environment file and enter your parameters:
cp .env .env.local
- Open
.env.local
in a text editor and fill in the required information.
yarn install
yarn run build
yarn start
To update the application, follow these steps:
-
Get the latest files:
git pull
-
Install any new dependencies:
yarn install
-
Rebuild the project:
yarn run build
You can also run the application using Docker. Follow these steps:
-
Build the Docker image:
docker build . -t <your desired username>/togoodtogobot
-
Run the Docker image:
docker run -p 3000:3000 -d <your desired username>/togoodtogobot
To configure Telegram notifications, follow these steps:
-
Open a Telegram chat with BotFather and enter the /start command.
-
Select the /newbot command and follow the instructions to create a new bot. Take note of the token access provided.
-
Once your bot is created, multiple users can use it to receive notifications about their favorite stocks.
-
To start receiving notifications, send the /start command in your bot's conversation.
- /start: Starts Telegram notifications
- /stop: Stops Telegram notifications
- /help: Provides a list of usable commands
PM2 allows you to install the bot on a server and receive notifications 24/7. Follow these steps:
-
Install PM2:
yarn install pm2 -g
-
Start the server:
pm2 start start.sh
-
After logging in:
pm2 ls # to see the process_id pm2 attach your_process_id # Press Enter to submit your registration
See the CHANGELOG.md file for the change log.
Thanks to node-toogoodtogo-watcher for providing the API path and some information.
This project is licensed under the MIT License.