class SpeakBot::Bot
Public Class Methods
dislikes()
click to toggle source
# File lib/speak_bot.rb, line 67 def self.dislikes print "Bianca: Do you have any dislikes? >> " dislikes = gets.chomp phrase = "Bianca: I also dislike #{dislikes}.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end
hobbies()
click to toggle source
# File lib/speak_bot.rb, line 19 def self.hobbies print "Bianca: Do you have any hobbies? >> " hobbies = gets.chomp phrase = "Bianca: Ah! #{hobbies} sound like fun.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end
jobs()
click to toggle source
# File lib/speak_bot.rb, line 31 def self.jobs print "Bianca: Do you have any jobs? >> " jobs = gets.chomp phrase = "Bianca: #{jobs} sounds like a nice job.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end
likes()
click to toggle source
# File lib/speak_bot.rb, line 55 def self.likes print "Bianca: What do you like? >> " likes = gets.chomp phrase = "Bianca: I also like #{likes}.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end
pets()
click to toggle source
# File lib/speak_bot.rb, line 7 def self.pets print "Bianca: Do you have any pets? >> " pets = gets.chomp phrase = "Bianca: I also like #{pets}.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end
skills()
click to toggle source
# File lib/speak_bot.rb, line 43 def self.skills print "Bianca: Do you have any skills? >> " skills = gets.chomp phrase = "Bianca: I also like #{skills}.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end
weather()
click to toggle source
# File lib/speak_bot.rb, line 79 def self.weather print "Bianca: What is the weather? >> " weather = gets.chomp phrase = "Bianca: I suppose it must be #{weather} then.\n" speech = ESpeak::Speech.new(phrase) speech.speak puts phrase end