lib/boty/slack/chat.rb in boty-0.1.0 vs lib/boty/slack/chat.rb in boty-0.1.1

- old
+ new

@@ -2,10 +2,14 @@ module Slack class Chat include Slack::URL url "https://slack.com/api/chat.postMessage" - def im; @im ||= IM.new end + attr_reader :im + + def initialize + @im = IM.new + end def post_message(message, parameters = {}) defaults = { as_user: true, channel: "general",