Files
pseudbot/Makefile
T
Andrew Rogers 95c8726cbb added new multimedia superpowers
On startup, the code now initializes MEDIA with suitable media files
found in the `media` directory that satisfy Twitter's media file
requirements.  The `filetype` Python module has been added as a
dependency to ensure that files in `media` are what they claim to be.

In the bot class I added a new _parse_mention method, broke up the
pasta chain builder method, and added a new recursive _tweet_media
method.  The _parse_mention method had to have some `stupid_emoji`
hackery thanks to the way the 🖼 emoji gets encoded in some tweets.

A new fetch-media script has been added along with a new util function
named `download_tweet_media`

See media/README.md for more information on how to use the newly-added
multimedia superpowers.
2021-12-07 16:50:08 -06:00

22 lines
427 B
Makefile

install:
python setup.py install
clean:
python setup.py clean
rm -rvf build *.egg-info dist
reinstall:
$(MAKE) clean
$(MAKE) install
readme-preview:
pandoc README.md -s -c img/pub.css -o README.html
pandoc media/README.md -s -c $(PWD)/img/pub.css -o media/README.html
format:
black -v -l 80 pseudbot/*
black -v -l 80 scripts/*
# Uncomment below if we ever include code examples:
##black -v -l 80 examples/*.py