Skip to content

Commit

Permalink
translation feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hmangukia committed Aug 21, 2018
1 parent ea8427c commit 8b67cc2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions windows/benji.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ def events(frame,put):


#Get friends from twitter
elif link[-1] == "twitter" and link[-3] == "follow":
auth = OAuthHandler(twitterCredentials.consumer_key, twitterCredentials.consumer_secret)
auth.set_access_token(twitterCredentials.access_token, twitterCredentials.access_secret)
api = tweepy.API(auth)
for friend in tweepy.Cursor(api.friends).items():
print("\nName: ", json.dumps(friend.name), " Username: ", json.dumps(friend.screen_name))
elif link[-1] == "twitter":
if link[-3] == "follow" and link[-1] == "twitter":
auth = OAuthHandler(twitterCredentials.consumer_key, twitterCredentials.consumer_secret)
auth.set_access_token(twitterCredentials.access_token, twitterCredentials.access_secret)
api = tweepy.API(auth)
for friend in tweepy.Cursor(api.friends).items():
print("\nName: ", json.dumps(friend.name), " Username: ", json.dumps(friend.screen_name))

#Screenshot
elif put.startswith('take screenshot') or put.startswith("screenshot"):
Expand Down

0 comments on commit 8b67cc2

Please sign in to comment.