Adium

Profile: Joseph C-P (josephcp)

Comment Count 2 comments
0 xtras

Latest comments

# by josephcp on 12/01/07 at 22:30:37

I wanted to include status-update time and if you want to also, edit twitter.rb and replace the block "when Net::HTTPSuccess" with:

when Net::HTTPSuccess
xmldoc = REXML::Document.new(response.body)
timestring = Time.parse(xmldoc.root.elements["status[1]/created_at"].text)
twitter = xmldoc.root.elements["status[1]/text"].text + "n" + Time.parse(xmldoc.root.elements["status[1]/created_at"].text).strftime("%a %b %d %I:%M%p %Z %Y")
open(twitterfile,"w").write(twitter)
puts twitter

# by josephcp on 12/01/07 at 08:39:58

open the file in your user directory:
Library/Application Support/Adium 2.0/Scripts/Twitter.AdiumScripts/Contents/Resources/twitter.rb

Search for 60, change that to however many seconds between requests you want.