Allow Markov and lyrics bots to use separate accounts for tweeting
This commit is contained in:
parent
88f8792478
commit
917ae98c8a
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ def postprocess(lid, tid, db = dbtools.dbHelper()):
|
|||
db.executeQuery("UPDATE lyrics SET active = 1 WHERE ref = %i;" % int(lid))
|
||||
db.commit()
|
||||
|
||||
def tweet(text, ref = 0, two = twitools.twObject()):
|
||||
def tweet(text, ref = 0, two = twitools.twoHelper(setuptools.LYRICS)):
|
||||
return two.tweet(text, ref).id
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
@ -9,7 +9,7 @@ def getText(db = dbtools.dbHelper()):
|
|||
def markovify(text):
|
||||
return markovify.Text(text).make_short_sentence(130).replace("@", "@")
|
||||
|
||||
def tweet(text, ref = 0, two = twitools.twObject()):
|
||||
def tweet(text, ref = 0, two = twitools.twoHelper(setuptools.MARKOV)):
|
||||
return two.tweet(text, ref).id
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue