Merge pull request #36 from wayspurrchen/docs

Add @on_startup to documentation
This commit is contained in:
Jaiden Mispy
2014-11-13 04:42:01 +11:00

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