A little voice activated robot.
Add this line to your application's Gemfile:
gem 'botbot'
And then execute:
$ bundle
Or install it yourself as:
$ gem install botbot
#!/usr/bin/env ruby
require 'botbot'
Botbot.configure do |config|
config.name = "Butler"
end
Botbot.run do |bot|
bot.hear(/who are you/i) do
bot.say("Hello World, I am #{Botbot.name}")
end
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request