Docker image for the https://twitter.com/_hoodedFigure twitter bot
358
This is a small toy project for a Twitter bot that uses the tweepy library to interact with twitter.
I'm a fan of welcome to nightvale, where there is a dogpark that is only used by hooded figures. The hooded figures do not want people mentioning the dogpark - or thinking of it. They especially do not want dogs in the dogpark.
This bot aids this strive for dogpark related content by reminding other twitter users that they should be careful around the subject. To do so it mentions them with a random selection from a set of predefined messages.
If you want to get a local copy of this bot working feel free to follow these steps:
REQUIREMENTS via pip so that your python setup
has the required libraries.env CONSUMER_KEY=… \
CONSUMER_SECRET=… \
python3.5 main.py
ACCESS_TOKEN and ACCESS_TOKEN_SECRET are not provided the bot
will print a URL to stdout.stdin.ACCESS_TOKEN and ACCESS_TOKEN_SECRET values to use.env CONSUMER_KEY=… \
CONSUMER_SECRET=… \
ACCESS_TOKEN=… \
ACCESS_TOKEN_SECRET=… \
python3.5 main.py
The bot is also available as a docker container named runjak/hoodedfigure.
This image is an automatic build where runjak/hoodedfigure:latest
follows the master branch.
You can use the image with a command like this:
docker run \
-e CONSUMER_KEY=… \
-e CONSUMER_SECRET=… \
-e ACCESS_TOKEN=… \
-e ACCESS_TOKEN_SECRET=… \
-it runjak/hoodedfigure:latest
Content type
Image
Digest
Size
48.2 MB
Last updated
almost 10 years ago
docker pull runjak/hoodedfigure