A mastodon bot which sequentially posts the laws of the Code of Hammurabi at a random time, daily.
- Historical fascination
- Homage to the whoever chiselled those rocks
- Interest in ancient governance (despite slavery and deep sexism, the lex talionis and presumption of innocence indicate the Code may have been progressive for its time)
- Test tech skills, first mastodon bot
Avatar and header images are locally included in images/
- avatar image, a bust of Hammurabi, adapted from this wikipedia image
- header image, a section of the Code, is this wikimedia image
Text is locally included in codeOfHammurabi.txt
, sourced from Yale Law School, The Avalon Project
# Clone this
git clone git@gitlab.com:DougInAMug/hammurabot.git
# Install the only dependency, toot https://toot.readthedocs.io/en/latest/ e.g.:
sudo apt install toot
# Login to target account with toot
toot login <your-account-url>
# Check if working (tell me if not!)
bash hammurabot.sh
# Add cron job: 0 0 * * * cd <your-path-to>/hammurabot && bash hammurabot.sh
crontab -e