Module: BotMob
- Defined in:
- lib/bot_mob.rb,
lib/bot_mob/bot.rb,
lib/bot_mob/wire.rb,
lib/bot_mob/roster.rb,
lib/bot_mob/install.rb,
lib/bot_mob/version.rb,
lib/bot_mob/authority.rb,
lib/bot_mob/ambassador.rb,
lib/bot_mob/connection.rb,
lib/bot_mob/application.rb,
lib/bot_mob/inbound_message.rb,
lib/bot_mob/slack/ambassador.rb
Overview
## BotMob
BotMob provides all the tools you need to easily connect to chat networks
Defined Under Namespace
Modules: Slack Classes: Ambassador, Application, Authority, Bot, Connection, ConnectionNotEstablished, InboundMessage, Install, InvalidClientIdError, InvalidClientSecretError, InvalidCodeError, InvalidNetworkError, Roster, Wire
Constant Summary collapse
- VERSION =
'0.2.0'.freeze
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/bot_mob.rb', line 35 def self.logger @logger ||= begin buffer = Logger.new(ENV['RACK_ENV'] == 'test' ? '/dev/null' : STDOUT) if buffer buffer.level = ($PROGRAM_NAME == 'irb' ? Logger::DEBUG : Logger::INFO) buffer.formatter = proc { |severity, datetime, progname, msg| "#{msg}\n" } end buffer end end |
.root ⇒ Object
31 32 33 |
# File 'lib/bot_mob.rb', line 31 def self.root File.('../..', __FILE__) end |