lib/lita/adapters/campfire/connector.rb in lita-campfire-0.2.1 vs lib/lita/adapters/campfire/connector.rb in lita-campfire-0.3.0
- old
+ new
@@ -36,10 +36,12 @@
def send_messages(room_id, messages)
fetch_room(room_id).tap do |my_room|
messages.each do |message|
if message.include?("\n")
my_room.paste message
+ elsif message.start_with?("/play ")
+ my_room.play message.sub("/play ", "")
else
my_room.speak message
end
end
end
@@ -67,6 +69,6 @@
campfire.me.id
end
end
end
end
-end
\ No newline at end of file
+end