This Discord bot is designed to provide portfolio analysis of Discord users based on their non-fungible token (NFT) holdings on Mintgarden. When a user requests an analysis, the bot fetches data from the Mintgarden API and computes the total value of the user's portfolio, the number of unique NFTs they hold, and the number of collections these NFTs belong to.
The bot presents this information in an easy-to-understand format, which includes a breakdown of the portfolio by collection. Each collection is accompanied by the total value of NFTs from that collection, the number of NFTs, and the percentage of the total portfolio value it represents.
- Clone the repository to your local machine:
git clone https://github.com/your-github-username/Mintgarden-Discord-Bot.git
cd Mintgarden-Discord-Bot
- Install the necessary Python dependencies:
pip install -r requirements.txt
-
Set up a bot on the Discord developer portal, get your token and add the bot to your Discord server. Follow this guide if you're not sure how to do it.
-
Bot token Update your-bot-token in the last line of the value.py script with your actual bot token.
-
Run the bot
python bot.py
To use the bot in your Discord server, simply type /value. The bot will then provide a comprehensive portfolio analysis of your NFT holdings on Mintgarden.
The values provided by this bot are exclusively based on the floor prices from each collection on Mintgarden.
Contributions are always welcome! Please feel free to submit a pull request.