Skip to content

Instantly share code, notes, and snippets.

@bryckbost
Created December 24, 2009 16:21
Show Gist options
  • Save bryckbost/263253 to your computer and use it in GitHub Desktop.
Save bryckbost/263253 to your computer and use it in GitHub Desktop.
require "rubygems"
require 'scrobbler'
require 'tinder'
user = Scrobbler::User.new('nsain')
output = "#{user.username}'s Top 5 Weekly Artists\n" + ("-" * (user.username.length + 30)) + "\n"
user.weekly_artist_chart[0..4].each {|t| output += "#{t.name} (#{t.playcount})\n" }
campfire = Tinder::Campfire.new('subdomain')
campfire.login('email', 'password')
room = campfire.find_room_by_name('Room Name')
room.paste output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment