Add @on_startup to documentation

This commit is contained in:
Way Spurr-Chen 2014-11-12 09:31:39 -06:00
parent 763bfe5efd
commit 76d6b3cf66

View file

@ -25,6 +25,11 @@ Ebooks::Bot.new("abby_ebooks") do |bot|
bot.consumer_secret = "" # Your app consumer secret
bot.oauth_token = "" # Token connecting the app to this account
bot.oauth_token_secret = "" # Secret connecting the app to this account
bot.on_startup do
# Run some startup task
# puts "I'm ready!"
end
bot.on_message do |dm|
# Reply to a DM