- Timestamp:
- 09/09/08 02:10:22 (2 months ago)
- Files:
-
- 1 modified
-
lang/ruby/misc/gdmng_twitter.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/misc/gdmng_twitter.rb
r14262 r19027 2 2 # -*- coding: utf-8 -*- 3 3 4 # 起床の通知を twitterとhatena graphにマルチポストするクライアントスクリプト4 # 起床の通知をTwitterとhatena graphにマルチポストするクライアントスクリプト 5 5 # おきた or 起きたでマルチポスト 6 # それ以外は普通の twitter postクライアント6 # それ以外は普通のTwitter postクライアント 7 7 8 8 require 'net/http' … … 12 12 13 13 twitter_config = Pit.get("twitter.com", :require => { 14 "username" => "your email in twitter",15 "password" => "your password in twitter",14 "username" => "your email in Twitter", 15 "password" => "your password in Twitter", 16 16 }) 17 hatena_config = Pit.get("hatena", :require => {17 hatena_config = Pit.get("hatena", :require => { 18 18 "username" => "your email in hatena", 19 19 "password" => "your password in hatena", … … 39 39 end 40 40 41 if !hatena_config["username"].empty? && status_utf8 =~ /^.* (起きた|おきた).*$/41 if !hatena_config["username"].empty? && status_utf8 =~ /^.*[起お]きた.*$/ 42 42 graph = Hatena::API::Graph.new(hatena_config["username"], hatena_config["password"]) 43 43 wakeup_time = time2float
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)