Skip to content

Commit

Permalink
Just testing stuff....
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Jan 29, 2009
1 parent ec37218 commit f35981a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion irc.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
require 'rubygems'
require 'shout-bot' # $ sudo gem install sr-shout-bot --source=http://gems.github.com

# = IRC notifications for Pushr (http://github.com/karmi/pushr/)
class IRC < Pushr::Notifier::Base
class Irc < Pushr::Notifier::Base

attr_reader :config

def initialize(config={})
@config = config
puts "OK, IRC initialized with config #{@config.inspect}"
end

def deliver!
ShoutBot.shout(config['uri'], :as => "Pushr") do |channel|
channel.say "Testing...."
end
end
end

0 comments on commit f35981a

Please sign in to comment.