Module: Chatterbot

Defined in:
lib/chatterbot.rb,
lib/chatterbot/db.rb,
lib/chatterbot/ui.rb,
lib/chatterbot/bot.rb,
lib/chatterbot/dsl.rb,
lib/chatterbot/reply.rb,
lib/chatterbot/tweet.rb,
lib/chatterbot/utils.rb,
lib/chatterbot/client.rb,
lib/chatterbot/config.rb,
lib/chatterbot/search.rb,
lib/chatterbot/helpers.rb,
lib/chatterbot/logging.rb,
lib/chatterbot/profile.rb,
lib/chatterbot/retweet.rb,
lib/chatterbot/version.rb,
lib/chatterbot/favorite.rb,
lib/chatterbot/skeleton.rb,
lib/chatterbot/blacklist.rb,
lib/chatterbot/followers.rb,
lib/chatterbot/streaming.rb

Overview

the big kahuna!

Defined Under Namespace

Modules: Blacklist, Client, Config, DB, DSL, Favorite, Followers, Helpers, Logging, Profile, Reply, Retweet, Search, Streaming, Tweet, UI, Utils Classes: Bot, Skeleton

Constant Summary collapse

VERSION =
"0.9.0"
@@from_helper =
false

Class Method Summary collapse

Class Method Details

.from_helperObject



61
62
63
# File 'lib/chatterbot.rb', line 61

def self.from_helper
  @@from_helper
end

.from_helper=(x) ⇒ Object



57
58
59
# File 'lib/chatterbot.rb', line 57

def self.from_helper=(x)
  @@from_helper = x
end

.libdirObject

Return a directory with the project libraries.



68
69
70
71
72
73
# File 'lib/chatterbot.rb', line 68

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

.loadObject

load in our assorted modules



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/chatterbot.rb', line 35

def self.load
  require "chatterbot/config"
  require "chatterbot/db"
  require "chatterbot/logging"
  require "chatterbot/blacklist"
  require "chatterbot/ui"
  require "chatterbot/client"    
  require "chatterbot/search"
  require "chatterbot/tweet"
  require "chatterbot/retweet"
  require "chatterbot/favorite"
  require "chatterbot/profile"
  require "chatterbot/reply"
  require "chatterbot/streaming"
  require "chatterbot/streaming_handler"
  require "chatterbot/followers"
  require "chatterbot/helpers"
  require "chatterbot/utils"

  require "chatterbot/bot"
end