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 33331181d2
commit 94cfb56611

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