Fix tweeting

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-10 18:54:30 +01:00
parent 9457a83e02
commit 74239a16b8

5
bot.py
View file

@ -57,12 +57,13 @@ def fish(bot, update):
update.message.reply_text("Yummy! Thanks! :3")
def explicitTweet(bot, update, args):
update.message.reply_text("Ooops. Not implemented yet.")
two = twitools.twoHelper(update.message.chat_id)
two.tweet(' '.join(args))
def tweet(bot, update):
try:
if dbtools.dbHelper().getTStatus(update.message.chat_id):
explicitTweet(bot, update, update.message.text)
explicitTweet(bot, update, [update.message.text])
except:
noauth(update)