A Discord bot that tracks the price of a product on Amazon and notifies the user when the price drops below a certain threshold.
-
Clone the repository.
-
Install the required dependencies using the following command:
pip install -r requirements.txt
-
Create a
.env
file in the root directory of the project and add the following environment variables:BOT_TOKEN=<your-bot-token> CHANNEL_ID=<discord-channel-id-for-notifications> POSTGRES_DB=amazon_price_track POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_HOST=db # db is the name of the service in docker-compose.yml
Note: You can get your bot token from here.
-
Run the main Python file using the following command:
python bot.py
-
Build the Docker image using the following command:
docker compose build
-
Run the Docker container using the following command:
docker compose up