Sha256: 55698b7adcdfb74aae3396eff5b3ea59441d601366d63bad64754f70e3b6a13f

Contents?: true

Size: 983 Bytes

Versions: 4

Compression:

Stored size: 983 Bytes

Contents

require 'active_support'
require 'chrono'
require 'forwardable'
require 'hashie'
require 'slack'
require 'termcolor'
require 'thor'
require 'logger'

module Slappy
  class << self
    extend Forwardable

    def_delegators :configuration, :logger
    def_delegators :client, :start, :hello, :hear, :say, :schedule, :monitor, :goodnight, :respond

    def configure
      @configuration = Configuration.new

      yield configuration if block_given?

      configuration
    end

    def configuration
      @configuration || configure
    end

    def client
      @client ||= Client.new
    end
  end
end

require 'slappy/concerns/debuggable'
require 'slappy/slack_api'
require 'slappy/cli'
require 'slappy/client'
require 'slappy/configuration'
require 'slappy/configuration/robot'
require 'slappy/commands/generator.rb'
require 'slappy/commands/run.rb'
require 'slappy/event'
require 'slappy/listener'
require 'slappy/messenger'
require 'slappy/schedule'
require 'slappy/version'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slappy-0.6.3 lib/slappy.rb
slappy-0.6.2 lib/slappy.rb
slappy-0.6.1 lib/slappy.rb
slappy-0.6.0 lib/slappy.rb