Jiya is a Discord bot designed to perform various cryptocurrency-related tasks, including retrieving coin information, managing favorites, buying and selling coins, tracking portfolios, and facilitating transfers between users. The bot utilizes the Discord.py library to interact with the Discord platform and integrates with the CoinMarketCap API to fetch real-time cryptocurrency data.
-
Retrieve Coin Information: Users can retrieve detailed information about cryptocurrencies, such as current price, market cap, and trading volume, using the bot's commands.
-
Manage Favorite Cryptocurrencies: Jiya allows users to create and manage a list of their favorite cryptocurrencies, making it easier to keep track of coins of interest.
-
Simulate Buying and Selling: The bot provides a simulated buying and selling feature, enabling users to specify the coin, quantity, and price to assess potential outcomes.
-
Track and Manage User Portfolios: Jiya enables users to track and manage their cryptocurrency portfolios, providing an overview of their holdings, including the quantity and value of each coin.
-
Transfer Cryptocurrencies: Users can transfer cryptocurrencies to other users within the Discord server, facilitating seamless exchanges between members.
Jiya simplifies cryptocurrency-related tasks within Discord communities, offering valuable insights and tools for managing digital assets.
- Python 3.7 or higher
- Replit (for running the bot)
The project utilizes the following dependencies:
- Discord.py
- Flask
- CoinMarketCap
- other dependencies listed in
pyproject.toml
To run this project, you will need to add the following environment variables. In Replit, navigate to the "Secrets" tab in the left sidebar.
BOT_TOKEN
Discord Bot TokenCMC_TOKEN
CoinMarketCap API Key.
To run the Jiya bot, follow these steps:
- Click on the "Create Repl" button from the sidebar.
- In the menu to create a new repl, press the "Import from GitHub" button in the top-right corner.
- Copy the URL of GitHub repository and paste it into the text field.
- Press the "Import" button.
- Ensure your Replit project is using Python 3.7 or higher.
- Set up the environment variables:
- In Replit, navigate to the "Secrets" tab in the left sidebar.
- Add a new secret with the key
BOT_TOKEN
and the value being your actual Discord bot token. - Add a new secret with the key
CMC_TOKEN
and the value being your actual CoinMarketCap api key.
- Start the bot:
- Open the
main.py
file. - Click the "Run" button in Replit to start the bot.
- Open the
For detailed information about the internal API and utility functions used in the Jiya bot, please refer to the API_Reference.md
file. It provides comprehensive documentation and guidelines for developers who want to understand and utilize the Jiya API.
Thank you for considering contributing to the Jiya project! Contributions are always welcome and greatly appreciated. To get started, please refer to the contributing.md
file. It outlines various ways in which you can contribute to the project and provides guidelines to follow when making contributions.
We kindly ask all contributors to adhere to the project's code of conduct. By participating in this project, you are expected to uphold the principles of respect, inclusivity, and professionalism.
To interact with the Jiya bot, please refer to the User_Guide.md
file. It provides detailed instructions and examples on how to use each command and functionality offered by the Jiya bot. Whether you want to retrieve coin information, manage favorites, simulate buying and selling, track portfolios, or transfer coins, the user guide will provide you with the necessary guidance.
Following features and enhancements are recommended for the Jiya project:
- Develop a web-based panel for administrators to manage the Jiya bot.
- Add a broadcast message feature to send messages to all servers.
- Implement server-specific messaging functionality.
- Introduce an ads message feature for administrators to send promotional messages.
- Provide customizable ad templates.
- Consider adding scheduling options for ad messages.
- Implement authentication for the web panel.
- Set different access levels for marketing team and administrators.
These recommendations aim to improve the functionality and user experience of the Jiya bot, allowing administrators to efficiently manage and engage with users. Please note that these recommendations require careful planning and development to integrate them into the existing Jiya project.
During the development of the Jiya project, several soft lessons were learned and valuable insights were gained. Here are some key takeaways:
-
Effective Communication: Clear and open communication is essential for successful collaboration. It is important to establish effective channels of communication, provide timely updates, and actively listen to team members' feedback and ideas.
-
Adaptability: The development process often requires adapting to new technologies, tools, and methodologies. Being open to learning and embracing change is crucial for staying current and improving skills.
-
Problem-Solving: Building a complex project like Jiya inevitably involves encountering challenges and obstacles. Developing strong problem-solving skills and a proactive mindset helps in overcoming these challenges and finding innovative solutions.
-
Documentation and Documentation: Documenting the project thoroughly, including code comments, API references, and user guides, promotes clarity, maintainability, and ease of use. It helps team members understand the project and assists users in utilizing its features effectively.
-
Collaboration and Teamwork: Working as a team fosters creativity, shared responsibility, and a sense of community. Emphasizing collaboration, encouraging diverse perspectives, and leveraging each team member's strengths greatly contribute to the success of the project.
-
Continuous Learning: The development process is an opportunity for continuous learning and growth. Embracing a growth mindset, seeking out new knowledge, and staying updated with the latest industry trends enhance professional development.
By reflecting on these soft lessons and incorporating them into future projects, the Jiya team can further improve their skills, processes, and project outcomes.
- Discord.py: Python library for creating Discord bots.
- CoinMarketCap API: API for retrieving cryptocurrency data.