From 76d6b3cf66c592b5f9c11906440eb1cbd60586c4 Mon Sep 17 00:00:00 2001 From: Way Spurr-Chen Date: Wed, 12 Nov 2014 09:31:39 -0600 Subject: [PATCH] Add @on_startup to documentation --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 406243a..69629d3 100644 --- a/README.md +++ b/README.md @@ -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