Sha256: 126d91c1daaa41721ae18cd94b5155cbec2b641e058ba237e686c6d342f273dc
Contents?: true
Size: 914 Bytes
Versions: 2
Compression:
Stored size: 914 Bytes
Contents
require 'yaml' require 'twitter_oauth' # # 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/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-0.5.1 | lib/chatterbot.rb |
chatterbot-0.5.0 | lib/chatterbot.rb |