A Twitter bot that detects new minted "cigawrettes" NFTs (https://www.cigawrettepacks.shop/) and tweets about it. This bot uses the tweepy
library for Twitter API access and web3
to interact with the Ethereum blockchain.
- Python 3.x
- tweepy
- web3
- An Infura account
- Clone the repo:
git clone https://github.com/Cryptocojak/mintybot.git
- Install required Python packages:
pip install tweepy web3
- Set up your
.env.py
file with the following variables:
CONSUMER_KEY
CONSUMER_SECRET
ACCESS_TOKEN
ACCESS_TOKEN_SECRET
INFURA_KEY
- Run the bot:
python bot2.py
The bot keeps running in the background and periodically queries the Ethereum blockchain to get the total supply of minted cigawrettes. If there are any new mints, it tweets about them.
running
: Controls whether the bot keeps running.query_interval
: Time between each query to the blockchain (in milliseconds).CONTRACT_ADDRESS
: Ethereum address of the cigawrettes NFT smart contract.
Fetches the current number of minted cigawrettes from the Ethereum blockchain.
Uses Tweepy to send a tweet.
- Implement error-handling for Twitter API rate limits.
- Tweet additional information like the current price or owners.
- Brand detection (President's Club Membership)
Feel free to submit pull requests or issues to improve the bot!