module Chatterbot

the big kahuna!

Constants

VERSION

Public Class Methods

from_helper() click to toggle source

are we being called from a helper script?

# File lib/chatterbot.rb, line 58
def self.from_helper
  @@from_helper
end
from_helper=(x) click to toggle source

setter to track if we're being called from a helper script

# File lib/chatterbot.rb, line 53
def self.from_helper=(x)
  @@from_helper = x
end
libdir() click to toggle source

Return a directory with the project libraries.

# File lib/chatterbot.rb, line 65
def self.libdir
  t = [File.expand_path(File.dirname(__FILE__)), "#{Gem.dir}/gems/chatterbot-#{Chatterbot::VERSION}"]

  t.each {|i| return i if File.readable?(i) }
  raise "both paths are invalid: #{t}"
end
load() click to toggle source

load in our assorted modules

# File lib/chatterbot.rb, line 29
def self.load
  require "chatterbot/config_manager"
  require "chatterbot/config"
  require "chatterbot/logging"
  require "chatterbot/blocklist"
  require "chatterbot/safelist"
  require "chatterbot/ui"
  require "chatterbot/client"    
  require "chatterbot/search"
  require "chatterbot/direct_messages"    
  require "chatterbot/tweet"
  require "chatterbot/retweet"
  require "chatterbot/favorite"
  require "chatterbot/profile"
  require "chatterbot/reply"
  require "chatterbot/home_timeline"
  require "chatterbot/followers"
  require "chatterbot/helpers"
  require "chatterbot/utils"

  require "chatterbot/bot"
end