This is a Discord bot that allows users to check the real-time price of cryptocurrencies in different currencies (USD, EUR, and GBP) using the CoinGecko API.
✅ Check crypto prices in USD, EUR, and GBP
✅ Get results in an embedded message for better readability
✅ Uses slash commands for easy interaction
✅ Built with Discord.py and CoinGecko API
🔹 /check_price_usd <coin> – Get the price of a cryptocurrency in USD
🔹 /check_price_eur <coin> – Get the price of a cryptocurrency in EUR
🔹 /check_price_gbp <coin> – Get the price of a cryptocurrency in GBP
- The bot listens for commands like
/check_price_usd bitcoin. - It fetches the latest price data from the CoinGecko API.
- The bot responds with an embedded message showing the price.
- Clone the repository:
git clone https://github.com/yourusername/crypto-price-bot.git cd crypto-price-bot - Install dependencies:
pip install discord requests
- Replace
"YOUR_BOT_TOKEN"in the script with your Discord bot token. - Run the bot:
python bot.py
🔹 Add more currencies and crypto options
🔹 Implement a dropdown menu & button UI for easier selection
🔹 Improve error handling for invalid coin names