Postodonisaserverthatwillposttomastodonatagiveninterval,witheachpostconsistingofanintroandcontent.ThisprojectwasforkedfrompromptodonasIsawtheuseofamoregeneralpurposeinterval-basedpostingbot.
UsageYoucaneitherrunthebotrawusingnodeorrunitinadockercontainerusingtheprovideddocker-compose.ymlfile.Ifyoufindanyissueswiththatfile,feelfreetoopenanissue.SeeHOWTO.mdformoreusageinfo.
ThebasicsPostodonwillposttoadesignatedmastodonaccountonadailybasisbydefault.Itdoesthisbytakinganintro(takenfromasinglelineintheintros.txtfileyouprovide)andapieceofcontent(takenfromasinglelineinthecontent.txtfileyouprovide)andconcatenatesthetwotogether,separatedbyasingleemptyline,andsendsaPOSTrequesttothedesignatedserver.Theaccountonthatservertowhichtheaccesstokenbelongstowillbetheaccountyoupostto.Youmustcreatetheaccesstokenbeforehandorelseyourbotwillnotknowwhichaccounttopostto.
WARNINGThisbotisbeingpublishedasaworkinprogressandIamactivelyseekingfeedbackonvariousthingssuchaserrorhandling,clarityofdocumentation,andeaseofuse.Feelfreetoopenanissue,contactmeviaemail,orviaMastodon@brandon@fosstodon.org.Thisbothasverylittletonoerrorhandlingatthispoint.Thecodeisprovidedasisforthemoment,butIwillbetakingfeaturerequests.
AuthorThisbotwas(mostly)createdbylinuxliaison.YoucaneithercontacthimontheFediverseorviaemail.
LICENSEThisworkislicensedunderGPLv3.CheckouttheLICENSEfile.
评论