mstdn-ebooks is a Python script that can be used to create your own “ebooks” bot - a bot that learns from your posts and generates new ones using Markov chains. While I recommend using FediBooks instead of mstdn-ebooks in almost all cases, it’s still maintained, and I personally use a modified version of it for one of my bots.