|
|
|
|
@ -3,8 +3,7 @@ import os
|
|
|
|
|
import re |
|
|
|
|
import textstat |
|
|
|
|
import pronouncing |
|
|
|
|
|
|
|
|
|
os.chdir('/home/bgcarlisle/Projects/Shantybot/') |
|
|
|
|
from mastodon import Mastodon |
|
|
|
|
|
|
|
|
|
with open ('corpus.txt') as corpus: |
|
|
|
|
mmodel = markovify.NewlineText(corpus) |
|
|
|
|
@ -108,4 +107,11 @@ while len(shanty.strip().split("\n")) < 9:
|
|
|
|
|
|
|
|
|
|
shanty = shanty.strip() |
|
|
|
|
|
|
|
|
|
print(shanty + '\n') |
|
|
|
|
# print(shanty + '\n') |
|
|
|
|
|
|
|
|
|
mastodon = Mastodon( |
|
|
|
|
access_token = 'shantybot_usercred.secret', |
|
|
|
|
api_base_url = 'https://botsin.space' |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
mastodon.status_post(shanty, spoiler_text="A sea shanty written by a bot") |
|
|
|
|
|