Module: SlackRubyBot

Defined in:
lib/slack-ruby-bot.rb,
lib/slack-ruby-bot/app.rb,
lib/slack-ruby-bot/bot.rb,
lib/slack-ruby-bot/about.rb,
lib/slack-ruby-bot/client.rb,
lib/slack-ruby-bot/config.rb,
lib/slack-ruby-bot/server.rb,
lib/slack-ruby-bot/version.rb,
lib/slack-ruby-bot/hooks/set.rb,
lib/slack-ruby-bot/commands/hi.rb,
lib/slack-ruby-bot/hooks/hello.rb,
lib/slack-ruby-bot/commands/base.rb,
lib/slack-ruby-bot/commands/help.rb,
lib/slack-ruby-bot/hooks/message.rb,
lib/slack-ruby-bot/mvc/view/base.rb,
lib/slack-ruby-bot/commands/about.rb,
lib/slack-ruby-bot/mvc/model/base.rb,
lib/slack-ruby-bot/commands/unknown.rb,
lib/slack-ruby-bot/support/loggable.rb,
lib/slack-ruby-bot/hooks/hook_support.rb,
lib/slack-ruby-bot/mvc/controller/base.rb,
lib/slack-ruby-bot/commands/support/help.rb,
lib/slack-ruby-bot/commands/support/attrs.rb,
lib/slack-ruby-bot/commands/support/match.rb,
lib/slack-ruby-bot/rspec/support/spec_helpers.rb

Defined Under Namespace

Modules: Commands, Config, Hooks, Loggable, MVC, SpecHelpers Classes: App, Bot, Client, Server

Constant Summary collapse

ABOUT =
<<-ABOUT.freeze
  #{SlackRubyBot::VERSION}
  https://github.com/slack-ruby/slack-ruby-bot
  https://twitter.com/dblockdotorg
ABOUT
VERSION =
'0.12.1'.freeze

Class Method Summary collapse

Class Method Details

.configObject


15
16
17
# File 'lib/slack-ruby-bot.rb', line 15

def config
  Config
end

.configureObject


11
12
13
# File 'lib/slack-ruby-bot.rb', line 11

def configure
  block_given? ? yield(Config) : Config
end