The Crypto Discord Bot is a Python-based bot that fetches real-time cryptocurrency prices from Coingecko and displays them in your Discord server. With this bot, you and your server members can stay up-to-date with the latest prices of various cryptocurrencies.
The Crypto Discord Bot is designed to be a helpful tool for crypto enthusiasts and traders who want to keep track of cryptocurrency prices without leaving Discord. By integrating this bot into your server, you can easily check the prices of your favorite coins in real-time.
To run the bot, ensure you have the following installed:
- Python (at least version 3.6)
- pip (Python package manager)
- Clone the repository:
git clone https://github.com/your-username/crypto-discord-bot.git
- Navigate to the project directory:
cd crypto-discord-bot
- Install the required Python packages:
pip install -r requirements.txt
-
Create a Discord bot and get your bot token:
- Go to the Discord Developer Portal.
- Create a new application and add a bot to it.
- Copy your bot token.
-
Set up your configuration:
- Rename
config.example.ini
toconfig.ini
. - Open
config.ini
and replaceYOUR_BOT_TOKEN
with your bot token.
- Rename
To start the bot, run the following command:
python bot.py
The bot will now be active on your Discord server.
Once the bot is running in your server, you can use the following commands to interact with it:
!price <coin>
: Fetches the current price of a specific cryptocurrency from Coingecko. Replace<coin>
with the name or symbol of the cryptocurrency (e.g.,!price bitcoin
or!price BTC
).!help
: Displays a list of available commands and their usage.
We welcome contributions to enhance the functionality of the Crypto Discord Bot. If you want to add new features, improve existing ones, or fix bugs, feel free to contribute.
To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your commit message here"
- Push your changes to your forked repository:
git push origin feature/your-feature-name
- Open a pull request to the
main
branch of this repository. - We will review your contribution, provide feedback, and merge it once approved.
Please ensure your pull request follows our Code of Conduct.
This project is licensed under the MIT License.