The NFT Floor Price Stat Bot is a Discord bot that provides real-time floor price statistics for a specific NFT collection. It updates its nickname in your Discord server with the current floor price of the chosen NFT collection from OpenSea.
- Updates the bot's nickname with the floor price of the chosen NFT collection.
- Real-time floor price data fetched from OpenSea using Axios.
- Built using Discord.js for seamless integration with Discord servers.
- Written in TypeScript for improved code maintainability and type safety.
- Node.js
- TypeScript
- Discord.js
- Axios
Clone the project
git clone https://github.com/thewolmer/nft-floor-price-stat-bot.git
Go to the project directory
cd nft-floor-price-stat-bot
Install dependencies
npm install
To run this project, you will need to add the following environment variables to your .env file
-
Discord Bot Token Create a new application with all gateway intents on Discord developer portal and grab the bot token.
-
OpenSea API Token: You need to acquire an OpenSea API token. Follow the instructions on the OpenSea API documentation to obtain your token.
-
NFT Collection Name: You should know the exact name of the NFT collection for which you want to fetch the floor price.
Create a .env
file in the project root and add the following variables:
TOKEN=your discord bot token
SERVER_IDS=servers ids where you want this bot to work
API_KEY=opensea api key
CONTRACT=contract address of nft collection
API_ENDPOINT= opensea api url
Start the server
npm run start
The bot will now update the its nickname with the current floor price of the chosen NFT collection.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
Happy NFT tracking with the NFT Floor Price Stat Bot! If you find this bot useful, consider giving it a ⭐ on GitHub. For questions or support, please contact contact@wolmer.me.
This project is used by the following:
- Moonie Moo Genesis NFT
- Add your Name here by creating a pull request.