template/project/bot.tt in boty-0.0.7 vs template/project/bot.tt in boty-0.0.9
- old
+ new
@@ -1,9 +1,10 @@
#!/usr/bin/env ruby
require "./<%= bot_name %>"
session = Boty::Session.new
session.start do |bot|
+ desc "Responds when the bot name (<%= bot_name %>) is mentioned in a message."
bot.message(/<%= bot_name %>/i) do |message|
next if message.from? self
say "Ohay <@#{message.user}>! I'm here, that's for sure."
end
end