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/
| commit 99: | 06d771a70000 |
| parent 98: | 4aa1d3e8f88c |
| branch: | default |
refollow.rbでremoveもおこなう
Sho Hashimoto /
shokai
10 months ago
10 months ago
Changed (Δ90 bytes):
raw changeset »
refollow.rb (8 lines added, 4 lines removed)
| … | … | @@ -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 |
} |
