Sha256: 6d8513fde839ca7e2e682ab01ecd724631b1d0568a98ac7fe6bed7ebc57f0a04

Contents?: true

Size: 974 Bytes

Versions: 5

Compression:

Stored size: 974 Bytes

Contents

require 'yaml'
require 'oauth'
require 'twitter'
require 'launchy'

#
# Try and load Sequel, but don't freak out if it's not there
begin
  require 'sequel'
rescue Exception
end


#
# extend Hash class to turn keys into symbols
#
class Hash
  #
  # turn keys in this hash into symbols
  def symbolize_keys!
    replace(inject({}) do |hash,(key,value)|
      hash[key.to_sym] = value.is_a?(Hash) ? value.symbolize_keys! : value
      hash
    end)
  end
end

#
# the big kahuna!
module Chatterbot

  #
  # load in our assorted modules
  def self.load
    require "chatterbot/config"
    require "chatterbot/db"
    require "chatterbot/logging"
    require "chatterbot/blacklist"
    require "chatterbot/ui"
    require "chatterbot/client"    
    require "chatterbot/search"
    require "chatterbot/tweet"
    require "chatterbot/retweet"
    require "chatterbot/reply"
    require "chatterbot/helpers"    

    require "chatterbot/bot"
  end
end


# mount up
Chatterbot.load

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chatterbot-0.6.6 lib/chatterbot.rb
chatterbot-0.6.5 lib/chatterbot.rb
chatterbot-0.6.3 lib/chatterbot.rb
chatterbot-0.6.2 lib/chatterbot.rb
chatterbot-0.6.1 lib/chatterbot.rb