Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 879 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 879 Bytes

MG HOTDOG

He's smart, sexy, and always available

Getting Him Running

  1. run bin/mg_hotdog
  2. Talk to him

Adding "Parts"

Adding a part is as simple as creating a class in lib/mg_hotdog/parts that implements the Part interface. To Create a Part that says hello when asked you would define a class as follows:

  class HelloPart
    def process(message, room)
      room.speak("MG Hotdog says hello #{message.user.name}") 
    end
  end

You can then add the part to the robot by editing bin/mg_hotdog

require 'mg_hotdog/parts/hello_part'
robot.listen /hello mg_hotdog/i, HelloPart.new

And that is all it takes.

##Notes

  • I removed Redis because I desided to use the composition pattern instead

  • It's a multi purpose hotdog... you can eat it, you can burn it to make pretty colors, you can even make a VW Bug engine block out of it