lib/slack_bot/events.rb in slack_bot-events-0.2.0 vs lib/slack_bot/events.rb in slack_bot-events-0.3.0
- old
+ new
@@ -1,9 +1,12 @@
# frozen_string_literal: true
+require "pry"
+
require "slack_bot/events/configuration"
require "slack_bot/events/client"
+require "slack_bot/events/middleware/chain"
require "slack_bot/events/schemas/socket_payload"
module SlackBot
module Events
class Error < StandardError; end
@@ -37,8 +40,20 @@
config.remove_listener(name: name)
end
def self.logger
config.logger
+ end
+
+ def self.message_middleware
+ config.message_middleware
+ end
+
+ def self.open_middleware
+ config.open_middleware
+ end
+
+ def self.close_middleware
+ config.close_middleware
end
end
end