verify_credential
authorOrakaro <nhatminh_179@hotmail.com>
Wed, 28 May 2014 16:15:50 +0000 (01:15 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Wed, 28 May 2014 16:15:50 +0000 (01:15 +0900)
rainbowstream/rainbow.py

index 53c002f..825c0c6 100644 (file)
@@ -153,7 +153,7 @@ def get_decorated_name():
     Beginning of every line
     """
     t = Twitter(auth=authen())
-    name = '@' + t.statuses.user_timeline()[-1]['user']['screen_name']
+    name = '@' + t.account.verify_credentials()['screen_name']
     g['decorated_name'] = grey('[') + grey(name) + grey(']: ')