Skip to content

DougInAMug/hammurabot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hammurabot

A mastodon bot which sequentially posts the laws of the Code of Hammurabi at a random time, daily.

Motivation

  • 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

Imagery

Avatar and header images are locally included in images/

Text

Text is locally included in codeOfHammurabi.txt, sourced from Yale Law School, The Avalon Project

'Install'

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages