Skip to content
Browse files

So that mobile notifications aren't enabled

When auto following the "follow" parameter actually doesn't do what it seems like it should do. It actually enables mobile notifications for the user that was just followed. I'm setting this as "False" to stop per-user tweet notifications for auto-followed users.
  • Loading branch information...
1 parent 82ba730 commit 9dc0faf85081404792bffe609b3d5cf0c0be2a1a @phocks phocks committed Dec 26, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 twitter_follow_bot.py
View
6 twitter_follow_bot.py
@@ -125,7 +125,7 @@ def auto_follow(q, count=100, result_type="recent"):
tweet["user"]["id"] not in following and
tweet["user"]["id"] not in do_not_follow):
- t.friendships.create(user_id=tweet["user"]["id"], follow=True)
+ t.friendships.create(user_id=tweet["user"]["id"], follow=False)
following.update(set([tweet["user"]["id"]]))
print("followed %s" % (tweet["user"]["screen_name"]))
@@ -151,7 +151,7 @@ def auto_follow_followers_for_user(user_screen_name, count=100):
if (user_id not in following and
user_id not in do_not_follow):
- t.friendships.create(user_id=user_id, follow=True)
+ t.friendships.create(user_id=user_id, follow=False)
print("followed %s" % user_id)
except TwitterHTTPError as e:
@@ -169,7 +169,7 @@ def auto_follow_followers():
for user_id in not_following_back:
try:
- t.friendships.create(user_id=user_id, follow=True)
+ t.friendships.create(user_id=user_id, follow=False)
except Exception as e:
print("error: %s" % (str(e)))

0 comments on commit 9dc0faf

Please sign in to comment.
Something went wrong with that request. Please try again.