Make Markov bot use markovify.NewlineText() rather than markovify.Text()

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-15 21:21:11 +01:00
parent a94f8e3ee5
commit 58ea79f7ba

View file

@ -10,7 +10,7 @@ def getText(db = dbtools.dbHelper()):
return text
def markovifyText(text):
return markovify.Text(text).make_short_sentence(130).replace("@", "@")
return markovify.NewlineText(text).make_short_sentence(130).replace("@", "@")
def tweet(text, ref = 0, two = twitools.twObject()):
return two.tweet(text, ref).id