printNicely('')
+def conversation():
+ """
+ Conversation view
+ """
+ t = Twitter(auth=authen())
+ try:
+ id = int(g['stuff'].split()[0])
+ except:
+ printNicely(red('Sorry I can\'t understand.'))
+ return
+ tid = c['tweet_dict'][id]
+ tweet = t.statuses.show(id=tid)
+ limit = 9
+ thread_ref = []
+ thread_ref.append (tweet)
+ prev_tid = tweet['in_reply_to_status_id']
+ while prev_tid and limit:
+ limit -= 1
+ tweet = t.statuses.show(id=prev_tid)
+ prev_tid = tweet['in_reply_to_status_id']
+ thread_ref.append (tweet)
+
+ for tweet in reversed(thread_ref):
+ draw(t=tweet)
+ printNicely('')
+
+
def tweet():
"""
Tweet
light_green('home 7') + ' will show 7 tweets.\n'
usage += s * 2 + light_green('mentions') + ' will show mentions timeline. ' + \
light_green('mentions 7') + ' will show 7 mention tweets.\n'
+ usage += s * 2 + light_green('conversation 12') + ' will show the chain of replies prior to the tweet with ' + \
+ light_yellow('[id=12]') + '.\n'
usage += s * 2 + light_green('whois @mdo') + ' will show profile of ' + \
magenta('@mdo') + '.\n'
usage += s * 2 + light_green('view @mdo') + \
light_yellow('already') + ' on your personal stream.\n'
usage += s + 'Any update from Twitter will show up ' + \
light_yellow('immediately') + '.\n'
- usage += s + 'In addtion, following commands are available right now:\n'
+ usage += s + 'In addition, following commands are available right now:\n'
# Twitter help section
usage += '\n'
usage += s + grey(u'\u266A' + ' Twitter help\n')
'home',
'view',
'mentions',
+ 'conversation',
't',
'rt',
'quote',
home,
view,
mentions,
+ conversation,
tweet,
retweet,
quote,
[], # home
['@'], # view
[], # mentions
+ [], # conversation
[], # tweet
[], # retweet
[], # quote