Our awesome campfire bot
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rvmrc
Gemfile
README.md
Rakefile
mg_hotdog.gemspec

README.md

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