Sha256: 5a3064c8f246e8ebd5e670bbd59555d1deb0dc647603d910ab877e493478635b

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

module Chatterbot

  #
  # primary Bot object, includes all the other modules
  class Bot
    include Blacklist
    include Config
    include Logging
    include Search
    include Tweet
    include Reply
    include Client
    include DB
    include Helpers

    #
    # Create a new bot. No options for now.
    def initialize(params={})
      @config = load_config(params)
      
      # update config when we exit
      at_exit do
        raise $! if $!
        update_config
      end   
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chatterbot-0.2.4 lib/chatterbot/bot.rb
chatterbot-0.2.3 lib/chatterbot/bot.rb
chatterbot-0.2.2 lib/chatterbot/bot.rb
chatterbot-0.2.1 lib/chatterbot/bot.rb
chatterbot-0.2.0 lib/chatterbot/bot.rb