+def reply_all():
+ """
+ Reply to all
+ """
+ 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]
+ original_tweet = t.statuses.show(id=tid)
+ text = original_tweet['text']
+ owner = '@' + original_tweet['user']['screen_name']
+ nick_ary = ['@' + re.sub('[\W_]', '', w)
+ for w in text.split() if w.startswith('@')] + [owner]
+ status = ' '.join(g['stuff'].split()[1:])
+ status = ' '.join(nick_ary) + ' ' + str2u(status)
+ t.statuses.update(status=status, in_reply_to_status_id=tid)
+
+