Only use original tweets in Markov bot
This commit is contained in:
parent
720411508b
commit
3cafac4649
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Possy(markovify.NewlineText):
|
|||
|
||||
def getText(db = dbtools.dbHelper()):
|
||||
text = ""
|
||||
for string in db.executeQuery("SELECT text FROM tweets;"):
|
||||
for string in db.executeQuery('SELECT text FROM tweets WHERE text NOT LIKE "@%" AND text NOT LIKE "RT %";'):
|
||||
text += string[0] + "\n"
|
||||
return "".join([s for s in text.strip().splitlines(True) if s.strip()])
|
||||
|
||||
|
|
Loading…
Reference in a new issue