Changeset 2974

Show
Ignore:
Timestamp:
12/10/07 15:32:43 (5 years ago)
Author:
yoko
Message:

lang/ruby/chokan/trunk/plugins/twitter_id.rb: 変数名変更
lang/ruby/chokan/trunk/plugins/kayac_wc.rb: private忘れ
lang/ruby/chokan/trunk/plugins/lastfm.rb: 聞いてない場合にもURL出すように + 台詞変更

Location:
lang/ruby/chokan/trunk/plugins
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/chokan/trunk/plugins/kayac_wc.rb

    r2619 r2974  
    1212        end 
    1313 
     14        private 
    1415        def knock 
    1516                Net::HTTP.start('sensor.desktopdeco.jp', 80) do |http| 
  • lang/ruby/chokan/trunk/plugins/lastfm.rb

    r451 r2974  
    1515                                @config['channel'][channel].each { |u| notice(channel, parse(u)) } 
    1616                        rescue 
    17                                 notice(channel, 'リストがないです') 
     17                                notice(channel, 'リストどこー?') 
    1818                        end 
    1919                when /^#{@prefix}(.+)$/i 
     
    3131                        log response.code.inspect 
    3232                        log response.body.inspect 
    33                         return "#{user}さんなんていません!" if response.code.to_i == 404 
    34                         return "#{user}さんはきいてません"  if response.body.empty? 
     33                        return "#誰だよ^^" if response.code.to_i == 404 
     34                        return "#聞いてないわよ : http://www.last.fm/user/#{user}"  if response.body.empty? 
    3535 
    3636                        _, time, title = */^([\d]+?),(.+)/.match(response.body) 
  • lang/ruby/chokan/trunk/plugins/twitter_id.rb

    r2972 r2974  
    6262                Net::HTTP.start('favotter.matope.com', 80) do |http| 
    6363                        response = http.get("/user.php?user=#{user}") 
    64                         xml = Hpricot(response.body) 
     64                        doc = Hpricot(response.body) 
    6565 
    66                         /\((\d+)\)/.match(xml.at('title').inner_html).to_a[1] 
     66                        /\((\d+)\)/.match(doc.at('title').inner_html).to_a[1] 
    6767                end 
    6868        end