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 92: | 8ce3199047fa |
| parent 91: | 166de7adea16 |
| branch: | default |
fix for update of twitter-ruby-gem
Sho Hashimoto /
shokai
11 months ago
11 months ago
Changed (Δ8 bytes):
raw changeset »
refav.rb (1 lines added, 1 lines removed)
refollow.rb (1 lines added, 1 lines removed)
| … | … | @@ -11,7 +11,7 @@ config = YAML::load open(File.dirname(__ |
11 |
11 |
|
12 |
12 |
user = config["user"] |
13 |
13 |
pass = config["pass"] |
14 |
twit = Twitter::Base.new(Twitter::HTTPAuth |
|
14 |
twit = Twitter::Base.new(Twitter::HTTPAuth.new(user, pass)) |
|
15 |
15 |
|
16 |
16 |
max = 10 |
17 |
17 |
max = ARGV[0].to_i if ARGV[0].to_i > 0 |
| … | … | @@ -13,7 +13,7 @@ tws = Twitterers.new(config["user"], con |
13 |
13 |
followers = tws.followers |
14 |
14 |
friends = tws.friends |
15 |
15 |
|
16 |
twit = Twitter::Base.new(Twitter::HTTPAuth |
|
16 |
twit = Twitter::Base.new(Twitter::HTTPAuth.new(config["user"], config["pass"])) |
|
17 |
17 |
(followers-friends).each{ |u| |
18 |
18 |
m = "follow #{u}" |
19 |
19 |
twit.update(m) |
