A automated twitter persona agent powered by GenAI who tweets twice a day.
- Fork the repository
- Setup the environment secrets for github action.
-
Go to the settings section of you forked repository.
-
Navigate to Secrets and variable on the left bar and click Actions.
-
Add the following environment with exact name.
-
For accessing twitter account to tweets
- ACCESS_TOKEN
- ACCESS_TOKEN_SECRET
- AUTHENTICATION_BEARER_TOKEN
- CONSUMER_KEY
- CONSUMER_SECRET
-
For LLM agent to decide what to tweet (you can configure it in prompt.py file)
- GOOGLE_API_KEY
For more info on how to access secret panel, read the docs
-
-
Clone the repository
git clone https://github.com/Mohwit/TwitterTron.git
-
After cloning the repository, install the required packages using the following command:
pip install -r requirements.txt
-
Create a .env file and add you secret varibles there with following name:
- ACCESS_TOKEN = XXX
- ACCESS_TOKEN_SECRET = XXX
- AUTHENTICATION_BEARER_TOKEN = XXX
- CONSUMER_KEY = XXX
- CONSUMER_SECRET = XXX
- GOOGLE_API_KEY = XXX
-
Run the main.py file with the command
python main.py
Note: It will tweet each time you will run the main.py file.