https://github.com/zaber-dev/coingecko-discord-bot
A Discord bot that provides cryptocurrency information and interactive charts using the Coingecko API
https://github.com/zaber-dev/coingecko-discord-bot
coingecko coingecko-api crypto crypto-bot crypto-markets cryptocurrency discord discord-bot discord-py disnake github-codespaces learn python python3 student-vscode
Last synced: 14 days ago
JSON representation
A Discord bot that provides cryptocurrency information and interactive charts using the Coingecko API
- Host: GitHub
- URL: https://github.com/zaber-dev/coingecko-discord-bot
- Owner: zaber-dev
- License: mit
- Created: 2025-02-02T06:11:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-05T08:23:50.000Z (over 1 year ago)
- Last Synced: 2025-08-05T10:51:38.879Z (10 months ago)
- Topics: coingecko, coingecko-api, crypto, crypto-bot, crypto-markets, cryptocurrency, discord, discord-bot, discord-py, disnake, github-codespaces, learn, python, python3, student-vscode
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coingecko Discord Bot
A Discord bot that provides cryptocurrency information and interactive charts using the Coingecko API.
## Features
- 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
## Setup
1. Clone the repository:
```bash
git clone https://github.com/zaber-dev/Coingecko-Discord-Bot.git
cd Coingecko-Discord-Bot
```
2. Create a virtual environment and activate it:
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. Install the required dependencies:
```bash
pip install -r requirements.txt
```
4. Create a `.env` file based on the `.env.example`:
```bash
cp .env.example .env
```
5. Add your Discord bot token to the `.env` file:
```properties
BOT_TOKEN=your_discord_bot_token
```
## Usage
1. Run the bot:
```bash
python main.py
```
2. Invite the bot to your Discord server using the OAuth2 URL with the necessary permissions.
## Commands
- `/price `: Get the current price of a cryptocurrency.
- `/market `: Get market data for a cryptocurrency.
## Interactive Views
- **MarketChartView**: Select different time periods to view price charts.
- **CurrencyConverter**: Convert cryptocurrency prices to different currencies.
- **PaginationView**: Navigate through multiple pages of results.
## Contributing
Feel free to open issues or submit pull requests if you have any improvements or bug fixes.
## License
This project is licensed under the MIT License.