Class: ChatBot::Bot

Inherits:
Object
  • Object
show all
Defined in:
lib/ChatBot.rb

Class Method Summary collapse

Class Method Details

.dislikesObject



52
53
54
55
56
57
58
59
# File 'lib/ChatBot.rb', line 52

def self.dislikes
  bot_name = "Bianca"

  print "Bianca: Do you have any dislikes? >> "
  dislikes = gets.chomp

  print "Bianca: I also dislike #{dislikes}.\n"
end

.hobbiesObject



16
17
18
19
20
21
22
23
# File 'lib/ChatBot.rb', line 16

def self.hobbies
  bot_name = "Bianca"

  print "Bianca: Do you have any hobbies? >> "
  hobbies = gets.chomp

  print "Bianca: Ah! #{hobbies} sounds like fun!\n"
end

.jobsObject



25
26
27
28
29
30
31
32
# File 'lib/ChatBot.rb', line 25

def self.jobs
  bot_name = "Bianca"

  print "Bianca: Do you have any jobs? >> "
  jobs = gets.chomp

  print "Bianca: #{jobs} sounds like a nice job.\n"
end

.likesObject



43
44
45
46
47
48
49
50
# File 'lib/ChatBot.rb', line 43

def self.likes
  bot_name = "Bianca"

  print "Bianca: What do you like? >> "
  likes = gets.chomp

  print "Bianca: I also like #{likes}.\n"
end

.petsObject



7
8
9
10
11
12
13
14
# File 'lib/ChatBot.rb', line 7

def self.pets
  bot_name = "Bianca"

  print "Bianca: Do you have any pets? >> "
  pets = gets.chomp

  print "Bianca: I also like #{pets}.\n"
end

.skillsObject



34
35
36
37
38
39
40
41
# File 'lib/ChatBot.rb', line 34

def self.skills
  bot_name = "Bianca"

  print "Bianca: Do you have any skills? >> "
  skills = gets.chomp

  print "Bianca: I never met someone who had a skill in #{skills}.\n"
end

.weatherObject



61
62
63
64
65
66
67
68
# File 'lib/ChatBot.rb', line 61

def self.weather
  bot_name = "Bianca"

  print "Bianca: What is the weather? >> "
  weather = gets.chomp

  print "Bianca: I suppose it must #{weather} then.\n"
end