You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Émy OniriCorpe 1c048adfb2 posts in private & with CW 10 months ago
.gitignore Initial commit 5 years ago
LICENSE Initial commit 5 years ago add ananas credit 5 years ago reworked replies 5 years ago
config.cfg-sample ananas wrapper 5 years ago posts in private & with CW 10 months ago
requirements.txt Initial commit 5 years ago

Simple ebooks-style bot for

Inspired by original work by Jess:

Original ananas solution by Noëlle:

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
  • Ananas friendly


  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: ./ -s
  5. Verify the markov works by running locally to console: ./ -p
  6. Toot a markovified status! ./ -t

You can now set scraping and tooting to run periodically with cronjobs.

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

The Ananas Way

  1. Create a Mastodon account to be the ebooks bot
  2. Copy config.cfg-sample to config.cfg
    • Advanced users: You'll probably already have a config and secret keys for the bot. Just set it up as long as your config file can find the ananaswrapper.ebooksBot class.
  3. Run ananas --interactive config.cfg and input the information for your bot account

That's it! The ananas wrapper is set to scrape daily, toot every 30 minutes and reply to mentions. You can find more info at the ananas repo