include dm in timeline
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Tue, 22 Jul 2014 03:22:39 +0000 (12:22 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Tue, 22 Jul 2014 03:22:39 +0000 (12:22 +0900)
rainbowstream/rainbow.py
setup.py

index 55e062c..4c2851f 100644 (file)
@@ -165,8 +165,10 @@ def switch():
         args = parse_arguments()
         try:
             if g['stuff'].split()[-1] == '-f':
-                only = raw_input('Only nicks: ')
-                ignore = raw_input('Ignore nicks: ')
+                guide = 'To ignore an option, just hit Enter key.'
+                printNicely(light_magenta(guide))
+                only = raw_input('Only nicks [Ex: @xxx,@yy]: ')
+                ignore = raw_input('Ignore nicks [Ex: @xxx,@yy]: ')
                 args.filter = filter(None, only.split(','))
                 args.ignore = filter(None, ignore.split(','))
             elif g['stuff'].split()[-1] == '-d':
@@ -1652,6 +1654,8 @@ def stream(domain, args, name='Rainbow Stream'):
                     fil=args.filter,
                     ig=args.ignore,
                 )
+            elif tweet.get('direct_message'):
+                print_message(tweet['direct_message'])
     except TwitterHTTPError:
         printNicely('')
         printNicely(
index 0688365..c781b21 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 import os, sys
 
 # Bumped version
-version = '0.4.2'
+version = '0.4.3'
 
 # Require
 install_requires = [