tommeagher / heroku_ebooks

An archive of a script to generate Markov chains and to post to an _ebooks account on Twitter using Heroku. No longer actively supported.
264 stars 163 forks source link

Mastodon support #43

Closed andrlik closed 6 years ago

andrlik commented 6 years ago

Allows users to set up Mastodon accounts as a source of corpus data and also use Mastodon as a an additional or alternative target for the resulting Markov sentence. Relates to issue #42

tommeagher commented 6 years ago

Wow, @andrlik, this is amazing. I hadn't even considered Mastodon yet. Thanks for this PR. I'll review this in the next week or so before I merge. I'll holler if I have any questions. Do you have this running live on a Mastodon account now?

andrlik commented 6 years ago

Yep, it’s what is posting to @andrlik_ebooks@botsin.space. It pulls both the tweets from my Twitter account, and any of the Mastodon toots from my primary Mastodon account. There is one limitation in that statuses on Mastodon don’t federate to other instances unless someone on that foreign instance follows the account (in which case the statuses appear in both places for anyone), so the bot can only pull whatever history exists on its instance. The only way around that would be create the bot on the same instance, but that would depend on the rules about bots on that instance.

andrlik commented 6 years ago

Hi, any updates on this PR? Thanks!

tommeagher commented 6 years ago

Hi @andrlik, I haven't forgotten about this. I'm still very excited and glad to have it. Just need to carve out a little time to give it some attention. I fully intend to and will let you know when I inevitably have questions. Thank you!

andrlik commented 6 years ago

I have now made it so that you can choose your posting targets independently of the enabled sources.

tommeagher commented 6 years ago

Awesome, @andrlik. Thanks for adding that. This is great. Happy to merge this into master. Thank you!