Permalink
Browse files

allow user to follow multiple people after auth'd.

  • Loading branch information...
1 parent de186e3 commit db531d7c72f529fd0b91f3e64e9dc8d79527a25d @gleuch committed Oct 20, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 retweet.rb
View
@@ -155,7 +155,11 @@ def launch_retweet_hell(msg=false)
begin
twitter_connect(@user)
@twitter_client.update("#{configatron.twitter_sync_tweet} #{configatron.twitter_hashtag}")
- @twitter_client.friend(configatron.twitter_screen_name)
+
+ # Follow the creators (or whomever else)
+ configatron.twitter_screen_name.gsub(/\s/, '').split(',').each do |name|
+ @twitter_client.friend(name)
+ end
rescue
twitter_fail('An error has occured while trying to post a tweet to Twitter. Please try again.')
end

0 comments on commit db531d7

Please sign in to comment.