An open API service indexing awesome lists of open source software.

https://github.com/zzzprotagonistzzz/discord-crypto-checker-bot

Discord bot that checks crypto prices using the CoinGecko API
https://github.com/zzzprotagonistzzz/discord-crypto-checker-bot

crypto discord discord-bot prices

Last synced: 6 months ago
JSON representation

Discord bot that checks crypto prices using the CoinGecko API

Awesome Lists containing this project

README

          

# Crypto Price Discord Bot

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**.

## Features
✅ 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**

## Commands
🔹 `/check_price_usd ` – Get the price of a cryptocurrency in USD
🔹 `/check_price_eur ` – Get the price of a cryptocurrency in EUR
🔹 `/check_price_gbp ` – Get the price of a cryptocurrency in GBP

## How It Works
1. The bot listens for commands like `/check_price_usd bitcoin`.
2. It fetches the latest price data from the **CoinGecko API**.
3. The bot responds with an **embedded message** showing the price.

## Setup
1. Clone the repository:
```sh
git clone https://github.com/yourusername/crypto-price-bot.git
cd crypto-price-bot
```
2. Install dependencies:
```sh
pip install discord requests
```
3. Replace `"YOUR_BOT_TOKEN"` in the script with your **Discord bot token**.
4. Run the bot:
```sh
python bot.py
```

## Future Improvements
🔹 Add more currencies and crypto options
🔹 Implement a **dropdown menu & button UI** for easier selection
🔹 Improve error handling for invalid coin names