From 74239a16b8db500d3f68dcda41a5db40cac3dade Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 10 Feb 2017 18:54:30 +0100 Subject: [PATCH] Fix tweeting --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 7d76f2d..0f56a62 100755 --- a/bot.py +++ b/bot.py @@ -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)