Mastodon bot that toots a random image from Below the Surface https://belowthesurface.amsterdam
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
1.json
2.json
3.json
4.json
5.json
6.json
7.json
README.md
registerapp.py
toot.py

README.md

Below the Surface

Mastodon bot that toots a random image from Below the Surface

Setup

  • Create a mastodon account on botsin.space (or wherever, but if you do it somewhere else you'll need to find/replace botsin.space within the code with your chosen instance)
  • Install Mastodon.py with pip install Mastodon.py
  • In registerapp.py replace APPNAME with a name for your application
  • In toot.py replace EMAILADDRESS and PASSWORD with your account's email and password
  • Run ./registerapp.py JUST ONCE. This will generate an app for you, and save the info to a file that toot.py loads in
  • Set up a cron job for the bot. Something like 0 */2 * * * cd /home/username/belowthesurface && ./toot.py (this runs it every 2 hours)

Feel free to modify this and do whatever you want with it :)