Sha256: cc7b007403ec7844289daa32bf9e9e465596f736a9622b028c11a4a0f02eeb7e
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
module Chatterbot # # primary Bot object, includes all the other modules class Bot include Utils include Blacklist include Whitelist include Streaming include Config include Logging include Search include Tweet include Profile include Retweet include Favorite include Reply include Followers include UI include Client include DB include Helpers # # Create a new bot. No options for now. def initialize(params={}) if params.has_key?(:name) @botname = params.delete(:name) end @config = load_config(params) if reset_bot? reset_since_id update_config puts "Reset to #{@config[:since_id]}" exit else # update config when we exit at_exit do raise $! if $! update_config_at_exit end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chatterbot-0.9.2 | lib/chatterbot/bot.rb |