This is a Discord bot for StarkNet blockchain built using Discord API and Web3.py. It updates the bot's nickname in every Discord server it's in to the current floor price of the specified token in the API call (0x01c7607659020c0f128fe677a1d7be9c3b9f66cedfe50296aca146b003875ee5). The price is updated every 15 seconds.
To run this bot, you need to have a Discord API token and run the code in a Python environment.
- Python 3.6+
- Discord API token
discord.py
library.
pip install discord.py
requests
library
pip install requests
web3
library
pip install web3
json
libraryasyncio
librarytime
librarydatetime
library
- Install Python 3.6+ and set up a virtual environment.
- Install the necessary libraries by running pip install discord.py requests json asyncio time datetime web3 in the terminal or command prompt.
- Replace "TOKEN" in the code with your Discord API token.
- Run the code in a Python environment.
- Updates bot's nickname in every Discord server to the current floor price of the specified token.
- Provides server information with the $server_info command.
Discord API - The API used to build the bot
Web3.py - Ethereum API for Python
Feel free to contribute to the development of this bot by submitting pull requests or reporting issues.