Allow Markov and lyrics bots to use separate accounts for tweeting

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-18 20:47:20 +01:00
parent 88f8792478
commit 917ae98c8a
2 changed files with 2 additions and 2 deletions

View file

@ -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__":

View file

@ -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__":