Fix tweeting
This commit is contained in:
parent
9457a83e02
commit
74239a16b8
1 changed files with 3 additions and 2 deletions
5
bot.py
5
bot.py
|
@ -57,12 +57,13 @@ def fish(bot, update):
|
||||||
update.message.reply_text("Yummy! Thanks! :3")
|
update.message.reply_text("Yummy! Thanks! :3")
|
||||||
|
|
||||||
def explicitTweet(bot, update, args):
|
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):
|
def tweet(bot, update):
|
||||||
try:
|
try:
|
||||||
if dbtools.dbHelper().getTStatus(update.message.chat_id):
|
if dbtools.dbHelper().getTStatus(update.message.chat_id):
|
||||||
explicitTweet(bot, update, update.message.text)
|
explicitTweet(bot, update, [update.message.text])
|
||||||
except:
|
except:
|
||||||
noauth(update)
|
noauth(update)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue