bin/bot in boty-0.0.7 vs bin/bot in boty-0.0.9
- old
+ new
@@ -1,10 +1,11 @@
#!/usr/bin/env ruby
require "./lib/boty"
session = Boty::Session.new
session.start do |bot|
- bot.message(/are you there\?/i) do |message|
+ bot.desc "Responds when someone asks for the #{bot.name} presence."
+ bot.message(/#{bot.name}, are you there\?/i) do |message|
next if message.from? self
say "Ohay <@#{message.user}>! I'm here, that's for sure."
end
end