This bot automatically posts daily updates about Alephium burned fees to Twitter. It fetches a graph from the Alephium dashboard and posts it at 00:00 UTC every day.
- Install the required dependencies:
pip install -r requirements.txt
- Create a
.env
file in the root directory with your Twitter API credentials:
TWITTER_API_KEY=your_api_key_here
TWITTER_API_SECRET=your_api_secret_here
TWITTER_ACCESS_TOKEN=your_access_token_here
TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret_here
To get these credentials:
- Go to the Twitter Developer Portal
- Create a new app or use an existing one
- Generate the API keys and access tokens
- Make sure your app has read and write permissions
Simply run the Python script:
python twitter_bot.py
The bot will:
- Make an initial post when started
- Schedule daily posts at 00:00 UTC
- Continue running until stopped
- Fetches the burned fees graph from the Alephium dashboard
- Posts daily updates with the graph image
- Includes the date and relevant hashtags in each tweet
- Runs automatically at 00:00 UTC
- Error handling and logging
- The bot needs to be running continuously to post daily updates
- Consider using a process manager like
supervisor
or running it in a Docker container for production use - Make sure your system time is correctly synchronized with UTC