LeBonCoinAlert is a .NET application designed to monitor and alert users about new listings on LeBonCoin. This project uses Docker for containerization and deployment.
Docker or .NET SDK 8.0
-
Clone the repository
-
Create a
.env.docker-composefile :cp .env.docker-compose.example .env.docker-compose
-
Create a new bot or get the token of an existing one (see instructions below) and save them in the .env.docker-compose file
-
Build and run the Docker container:
docker compose up -d
The application uses environment variables defined in the .env.docker-compose file. Ensure this file contains the
necessary configuration:
TOKEN=your_token_hereTo receive notifications via Telegram, you need to set up a Telegram bot and obtain your chat ID. Follow these steps:
- Open the chat with
@BotFather. - Enter
/newbot. - Enter the name of your bot (e.g.,
LeBonCoinAlert Bot). - Enter a unique username for your bot (e.g.,
my_leboncoin_alert_bot). - Copy the token provided by
@BotFather.
- Open the chat with your newly created bot.
- Enter
/start, now you can add urls to monitor. - Enter
/watch <url>to start monitoring a new listing.
This project is licensed under the MIT License. See the LICENSE file for more details.