Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created March 12, 2011 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/867346 to your computer and use it in GitHub Desktop.
Save goofmint/867346 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'tinder'
campfire = Tinder::Campfire.new 'your subdomain', :token => 'your api key'
require 'meow'
meep = Meow.new('Meow Test')
room = campfire.find_room_by_name('your room name')
room.listen do |m|
meep.notify('From Campfire', "#{m["user"]["name"]} says #{m["body"]}")
end
sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment