Sha256: 9a14517aa5e5b9af3245ca1ebce5e59438661553e2744a2699d83d3817f351a9

Contents?: true

Size: 516 Bytes

Versions: 4

Compression:

Stored size: 516 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

4 entries across 4 versions & 1 rubygems

Version Path
chatterbot-0.2.8 lib/chatterbot/bot.rb
chatterbot-0.2.7 lib/chatterbot/bot.rb
chatterbot-0.2.6 lib/chatterbot/bot.rb
chatterbot-0.2.5 lib/chatterbot/bot.rb