Show
Ignore:
Timestamp:
08/23/08 00:58:25 (6 years ago)
Author:
cho45
Message:

public_timeline にしてみる

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/net-irc/trunk/examples/hig.rb

    r18082 r18083  
    389389        def check_timeline 
    390390                @prev_time ||= Time.at(0) 
    391                 api("statuses/friends_timeline", {"since" => @prev_time.httpdate }).reverse_each do |s| 
     391                api("statuses/public_timeline", {"since" => @prev_time.httpdate }).reverse_each do |s| 
    392392                        begin 
    393393                                id = s["id"] 
     
    596596        def rid_for(text) 
    597597                target = Regexp.new(Regexp.quote(text.strip), "i") 
    598                 status = api("statuses/friends_timeline").find {|i| 
     598                status = api("statuses/public_timeline").find {|i| 
    599599                        next false if i["user"]["name"] == @nick # 自分は除外 
    600600                        i["text"] =~ target