\r
- ``conversation 12`` will show the chain of replies prior to the tweet with *[id=12]*.\r
\r
-- ``rep 12 Really`` will reply *‘Really’* to the tweet with *[id=12]*.\r
+- ``rep 12 Really`` will reply *‘Really’* to the owner of the tweet with *[id=12]*.\r
+\r
+- ``repall 12 Really`` will reply *‘Really’* to all people in the tweet with *[id=12]*.\r
\r
- ``fav 12`` will favorite the tweet with *[id=12]*.\r
\r
t.statuses.update(status=status, in_reply_to_status_id=tid)
+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)
+
+
def favorite():
"""
Favorite
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('rep 12 oops') + ' will reply "' + \
- light_yellow('oops') + '" to tweet with ' + \
+ light_yellow('oops') + '" to the owner of the tweet with ' + \
+ light_yellow('[id=12]') + '.\n'
+ usage += s * 2 + light_green('repall 12 oops') + ' will reply "' + \
+ light_yellow('oops') + '" to all people in the tweet with ' + \
light_yellow('[id=12]') + '.\n'
usage += s * 2 + \
light_green('fav 12 ') + ' will favorite the tweet with ' + \
'conversation',
'fav',
'rep',
+ 'repall',
'del',
'ufav',
'share',
conversation,
favorite,
reply,
+ reply_all,
delete,
unfavorite,
share,
[], # conversation
[], # favorite
[], # reply
+ [], # reply_all
[], # delete
[], # unfavorite
[], # url
detail_twitter_error(e)
sys.stdout.write(g['decorated_name'](g['PREFIX']))
sys.stdout.flush()
+ except (URLError, ConnectionResetError):
+ printNicely(
+ magenta('There seems to be a connection problem.'))
+ save_history()
+ sys.exit()
def fly():