8000 GitHub - LilithL/mastodon-ebooks.py: Python ebooks-style bot for Mastodon
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LilithL/mastodon-ebooks.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mastodon-ebooks.py

Simple ebooks-style bot for mastodon.py

Inspired by original work by Jess: https://github.com/Jess3Jane/mastodon-ebooks

Improvements over other ebooks bots

  • Scrapes only new toots, not entire list of statuses
  • Separates corpus by account, making a multi-account ebooks easier to manage
  • Does not require Heroku or Ruby
  • "Smart" replies
  • Cronjob friendly

Usage

  1. Create a Mastodon account to be the ebooks bot
  2. Follow the account(s) to be used as source material from bot
  3. You can use a script like this to generate user secrets to be used by the ebooks script
  4. Scrape the users by running: ./mastodon-ebooks.py -s
  5. Verify the markov works by running locally to console: ./mastodon-ebooks.py -p
  6. Toot a markovified status! ./mastodon-ebooks.py -t

Alternatively, you can loop indefinitely (reply every 10 seconds, toot and scrape toots every 30 minutes) ./mastodon-ebooks.py -l

Optionally, you can also run ./mastodon-ebooks.py -r regularly to check on notifications and reply to mentions.

login.py

I took the base login.py and edited it to implement the api base url inside usercred.secret so it's now easier to setup the bot without having to edit the base url from the mastodon-ebooks.py script.

About

Python ebooks-style bot for Mastodon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0