Add @on_startup to documentation
This commit is contained in:
parent
763bfe5efd
commit
76d6b3cf66
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue