A twitter bot for continuously posting a collection of media at exact timestamps
The collection should be an sqlite3 database with the following rows
Column Name | Purpose | Type | Notes |
---|---|---|---|
id |
Tweet ID | u64 |
|
file_names |
Media File Names | String |
comma-separated |
text |
Tweet Text Content | String |
|
translated_text |
Tweet Translated Text | String |
|
date |
Tweet Date | u64 |
unix timestamp |
Set COLLECTION_PATH
to the path of the sqlite3 database
Set IMAGE_DIR_PATH
to the path of the image directory (where file names are contained)
Provide the following environment variables
TWITTER_CONSUMER_KEY= # api key
TWITTER_CONSUMER_SECRET= # api secret
TWITTER_ACCESS_KEY= # access token
TWITTER_ACCESS_SECRET= # access secret
Provide the following environment variables
# Set this env variable to use a user account
TWITTER_USE_USER=1
TWITTER_USER_TOKEN= # authorization header
TWITTER_USER_AUTH_TOKEN= # auth_token cookie