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 (Δ8 bytes):

raw changeset »

refav.rb (1 lines added, 1 lines removed)

refollow.rb (1 lines added, 1 lines removed)

Up to file-list refav.rb:

@@ -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(user, pass))
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

Up to file-list refollow.rb:

@@ -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(config["user"], config["pass"]))
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)