Make Markov bot use markovify.NewlineText() rather than markovify.Text()
This commit is contained in:
parent
33331181d2
commit
94cfb56611
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ def getText(db = dbtools.dbHelper()):
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def markovifyText(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()):
|
def tweet(text, ref = 0, two = twitools.twObject()):
|
||||||
return two.tweet(text, ref).id
|
return two.tweet(text, ref).id
|
||||||
|
|
Loading…
Reference in a new issue