Skip to content

MatthewCash/twitter-collection-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-collection-bot

A twitter bot for continuously posting a collection of media at exact timestamps

Collection

Database

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

Environment

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)

Twitter Auth

Developer Bot

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

Experimental User Bot

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