lib/hipbot/adapters/hipchat/hipchat.rb in hipbot-0.0.5 vs lib/hipbot/adapters/hipchat/hipchat.rb in hipbot-0.1.0
- old
+ new
@@ -1,10 +1,8 @@
module Hipbot
module Adapters
module Hipchat
- delegate :reply, to: :connection
-
def start!
::EM::run do
::EM.error_handler do |e|
puts e.inspect
e.backtrace.each do |line|
@@ -12,9 +10,13 @@
end
end
Connection.new(self)
end
+ end
+
+ def method_missing(sym, *args, &block)
+ connection.send sym, *args, &block
end
end
end
end