Sha256: 55f806cb02c9b4594cb9c337e82d9922d499197b5ef9b91cb1d5e8a693acca93

Contents?: true

Size: 920 Bytes

Versions: 3

Compression:

Stored size: 920 Bytes

Contents

require "faye/websocket"
require "i18n"
require "faraday"
require "dotenv"
require "pp"

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

Dotenv.load
Dotenv.overload ".env.local"

# Namespace for all Boty code.
module Boty
  # Public: Reloads the available locale configuration files and set the current
  # language as the one passed in the paramenter `lang`.
  #
  # lang - String or Symbol representing the language that should be set for the
  # current execution.
  #
  # Examples:
  #
  #     Boty.locale = :en
  #
  # Returns nothing.
  def self.locale=(lang)
    Locale.reload lang
  end
end

require "boty/version"
require "boty/logger"
require "boty/slack"
require "boty/session"
require "boty/action_description"
require "boty/action"
require "boty/script_loader"
require "boty/dsl"
require "boty/locale"
require "boty/eventable"
require "boty/match_handler"
require "boty/bot"
require "boty/http"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boty-1.0.1 lib/boty.rb
boty-1.0.0 lib/boty.rb
boty-0.2.0 lib/boty.rb