Discord bot that tracks cryptocurrency and asset prices using Pyth Network and posts updates to Discord channels.
- Docker and Docker Compose
- A Discord application with bot tokens
-
Copy the example environment file:
cp .env.example .env -
Edit
.envand add your Discord bot tokens. Get tokens from https://discord.com/developers/applications -
The
CRYPTO_FEEDSvariable controls which assets to track. The defaults are:- BTC (Bitcoin)
- ETH (Ethereum)
- SOL (Solana)
- DOGE (Dogecoin)
- DXY (US Dollar Index)
docker-compose up -d
The bot will start and begin posting price updates to your configured Discord channels.
docker-compose ps
docker-compose logs -f
docker-compose down
Edit .env and change UPDATE_INTERVAL_SECONDS (default 30 seconds).
- Add a new bot token in
.env:DISCORD_TOKEN_ASSETNAME=your_token - Add the Pyth Network feed ID in
CRYPTO_FEEDS:ASSETNAME:feed_id - Rebuild:
docker-compose up -d --build