Simple script to run a Discord bot that displays the floor price of an NFT collection on OpenSea.
- Discord Bot & Token
- Python >= 3.8
Invite the bot into your Discord server and ensure it has a role with the following permissions:
- View Channels
- Change Nickname
- Clone the repository:
git clone https://github.com/chillerno1/discord-nft-satellite
- cd into directory:
cd discord-nft-satellite
- Setup a virtual environment:
python -m venv venv
- Activate the virtual environment:
venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Get the slug of a collection you wish to display (slug is a human readable identifier that is used to identify a collection. It can be extracted from the URL: https://opensea.io/collection/{slug})
- Append the slug to this URL to get the collection API endpoint: https://api.opensea.io/collection/{slug} (example: https://api.opensea.io/collection/boredapeyachtclub)
- Run the following command:
usage: satellite.py [-h] --discord-token DISCORD_TOKEN --alias ALIAS --url URL
Bot to display the NFT floor price of a collection on OpenSea.
--------------------------------------------------------------
required arguments:
-t, --discord-token token for this Discord bot.
-a, --alias alias for the NFT collection to display (shown in Discord activity).
-u, --url opensea api endpoint of the collection to display.
optional arguments:
-h, --help show this help message and exit
python .\satellite.py -t AAAAAAAA.aaa.AAAA -a BAYC -u https://api.opensea.io/collection/boredapeyachtclub