A Discord bot that provides cryptocurrency information and interactive charts using the Coingecko API.
- Fetch current cryptocurrency prices
- Display interactive price charts for different time periods
- Convert cryptocurrency prices to various currencies
- Paginated views for displaying multiple results
- Proper error handling
- Coin Suggestions for invalid searches
-
Clone the repository:
git clone https://github.com/zaber-dev/Coingecko-Discord-Bot.git cd Coingecko-Discord-Bot
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file based on the.env.example
:cp .env.example .env
-
Add your Discord bot token to the
.env
file:BOT_TOKEN=your_discord_bot_token
-
Run the bot:
python main.py
-
Invite the bot to your Discord server using the OAuth2 URL with the necessary permissions.
/price <crypto>
: Get the current price of a cryptocurrency./market <crypto>
: Get market data for a cryptocurrency.
- MarketChartView: Select different time periods to view price charts.
- CurrencyConverter: Convert cryptocurrency prices to different currencies.
- PaginationView: Navigate through multiple pages of results.
Feel free to open issues or submit pull requests if you have any improvements or bug fixes.
This project is licensed under the MIT License.