For tweeting out something every so often for as long as your server lasts.
- To create a virtual environment using python3, run something like
python3 -m venv SPRING. - cd to the project root
pip3 install -r requirements.txt
Once you're there, you'll need to hook up twitter to this. With the twitter account you intend to use this on:
- Go to https://developer.twitter.com/en/apps
- Create a new app
- Click the Keys and Access Tokens tab, create an Access Token.
- Get that access token and its secret, as well as the consumer key and secret.
- Take those variables listed above and make them available to your environment, maybe like this:
export ACCESS_TOKEN='blah-blah'
export ACCESS_SECRET='blah'
export CONSUMER_KEY='blah'
export CONSUMER_SECRET='blah'And once you've done that you'll need to run the initial setup: python here.py --initial. This creates the text files and puts the defaults in them.
Once a day, on a crontab maybe, run python3 here.py --story [name-of-story-as-set-in-your-json-filename] note that the story name is the filename of the json file in the story directory, minus the file extension.