-
released this
2021-08-06 10:21:29 +01:00 | 6 commits to master since this releaseChangelog
Build
- Re-built the bot using the
python:slim Docker
image instead ofbuster
so it has a much smaller footprint. - Reduced the number of
nltk
datasets the setup installs as the Bot only really needswordnet
to run now that the list of words has been generated. - Combined multiple Dockerfile steps into a single instruction to reduce the number of layers in the image, hopefully reducing its overall size.
- Removed log files from git repo.
The result of this is that the final image is ca 300 MB in size, compared to ca 8 GB previously.
This means I should hopefully be able to continue hosting it.Bot Functioning
- Added a check to see if log files are present, and if not create a blank log file, to avoid exceptions from using repo clones that do not have log files.
- Fixed a bug regarding Tweet interactions (see below).
- Deleted the comma from the tweet post template so that the tweets scan better.
Tweet Interaction Bug
There is a well-known limitation in the Tweepy API that tweets fetched in search results do not indicate whether a tweet has already been favourited or re-tweeted. This causes the bot to throw exceptions if it attempts to like or retweet a tweet it has already interacted with in this way. As a work-around, I have added a command to fetch the full tweet from the id of the verion fetched in the search result to prevent this exception.
Downloads
- Re-built the bot using the