Skip to content

Cryptocojak/mintybot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚬 Cigawrette Twitter Bot

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.

📋 Requirements

  • Python 3.x
  • tweepy
  • web3
  • An Infura account

🚀 Quickstart

  1. Clone the repo:
git clone https://github.com/Cryptocojak/mintybot.git
  1. Install required Python packages:
pip install tweepy web3
  1. Update the env.py file with your credentials. The file should contain:
  • CONSUMER_KEY
  • CONSUMER_SECRET
  • ACCESS_TOKEN
  • ACCESS_TOKEN_SECRET
  • INFURA_KEY
  1. Run the bot:
python bot2.py

🔍 What does it do?

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.

Key Variables

  • 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.

Key Functions

get_current_number_of_mints(contract)

Fetches the current number of minted cigawrettes from the Ethereum blockchain.

send_tweet(tweet)

Uses Tweepy to send a tweet.

⏭️ Future Work

  • Implement error-handling for Twitter API rate limits.
  • Tweet additional information like the current price or owners.
  • Brand detection (President's Club Membership)

🤝 Contributing

Feel free to submit pull requests or issues to improve the bot!

About

twitter bot prompted by NFT mint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages