shokai / bot-ahokai (http://twitter.com/ahokai)

twitter bot "ahokai". The license is public domain.

Clone this repository (size: 94.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/shokai/bot-ahokai/

Changed (Δ90 bytes):

raw changeset »

refollow.rb (8 lines added, 4 lines removed)

Up to file-list refollow.rb:

@@ -15,9 +15,13 @@ friends = tws.friends
15
15
16
16
twit = Twitter::Base.new(Twitter::HTTPAuth.new(config["user"], config["pass"]))
17
17
(followers-friends).each{ |u|
18
  m = "follow #{u}"
19
  twit.update(m)
20
  puts m
21
  sleep 10
18
  puts "follow "+u
19
  twit.friendship_create(u)
20
  sleep 5
22
21
}
23
22
23
(friends-followers).each{ |u|
24
  puts "remove "+u
25
  twit.friendship_destroy(u)
26
  sleep 5
27
}