Make Markov bot use markovify.NewlineText() rather than markovify.Text()
This commit is contained in:
parent
a94f8e3ee5
commit
58ea79f7ba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue