TooGooToGo-Bot is a tool to warn you about the availability of your favorite stores. This one will warn you thanks to Telegram or Window notifications.
This fork contains Dockerfile which adds ability to run bot in Docker Container.
Clone the repository and check out the master branch:
git clone https://github.com/Achaak/toogoodtogo-bot.git
Enter the repository:
cd toogoodtogo-bot/
Rename and edit configuration file:
cd config/
mv config.default.js config.js
nano config.js
Build image:
docker build . -t <your desired username>/togoodtogobot
Run image:
docker run -p 3000:3000 -d <your desired username>/togoodtogobot
Download and install the latest Node.js version:
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install -y nodejs
Clone the repository and check out the master branch:
git clone https://github.com/Achaak/toogoodtogo-bot.git
Enter the repository:
cd toogoodtogo-bot/
Make a copy of the config sample file and insert your parameters:
cd config && cp config.default.js config.js
Return at the root
cd ..
Install the application:
npm install
// or
yarnBuild the project
npm run build
// or
yarn buildStart the application:
npm run start
// or
yarn startGet new files
git pull
Install new modules
npm install
// or
yarnRebuild the project
npm run build
// or
yarn build-
Open a Telegram chat with BotFather and click the /start command.
-
Select the command /newbot and follow the instruction.
-
After created the bot. Take the token access and put in the config file.
-
Your bot is now ready. Multiple user can use it to get your favorite stocks avalaible.
-
Now, to start the notifications, send /start in your bot's conversation.
/start // Starts Telegram notifications
/stop // Stops Telegram notifications
/help // Gives usable commandsPM2 will allow you to install the bot on a server and be notified 24/7.
Install PM2
npm install pm2 -g
Start the server
pm2 start start.sh
https://github.com/Achaak/toogoodtogo-bot/blob/master/CHANGELOG.md
https://github.com/marklagendijk/node-toogoodtogo-watcher
Thanks for the API path and some informations.