-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method for favoriting a tweet and then following user #64
Conversation
Thank you @kenncann! I'm going to have to give this merge some thought. I'm a bit nervous that merging code like this will lead to code bloat, e.g., next we'll have a "auto reply then follow" method and so on. At the moment I think I'd prefer to keep these methods separate, although I'm open to being convinced otherwise. |
That makes sense @rhiever, I had thought about reorganizing some of the code to put most of auto_follow in a separate method so that the parts that I duplicated weren't repeated but I can see that adding up fast. I'll probably continue to make edits that suit my needs and make pull requests every now and then to see if you like it |
I wonder if we can abstract the code base such that the
Similarly, the
That would prevent the code duplication that we see in this PR. Is that a rework you'd be willing to hack at? Otherwise, I'll add it as an enhancement issue for future work. |
Yeah that makes a lot of sense I'll work on that |
👍 |
… Also combined these into new methods.
Updated the methods based on their new names: auto_fav ---> auto_fav_phrase auto_rt ---> auto_rt_phrase auto_follow ---> auto_follow_from_phrase New methods: auto_fav_phrase_then_follow auto_rt_phrase_then_follow
Ok @rhiever, I've made the updates you suggested, let me know what you think! |
Method for favoriting a tweet and then following user
Great work! Thank you. 👍 |
Gah, sorry about this @kenncann. When I was reviewing this code to send out an update, I realized that the API completely changed with this code change. All the current users would have to change their existing code to accommodate the new API if they upgraded to the latest version, and I'd imagine that would cause quite a few problems. I think the solution to this would be to switch the functions around: That would then easily allow the addition of |
Created a new method, auto_fav_then_follow, which combines auto_fav and auto_follow into one request.
Also updated the readme