mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-23 13:51:09 -05:00
Add @on_startup to documentation
This commit is contained in:
@@ -26,6 +26,11 @@ Ebooks::Bot.new("abby_ebooks") do |bot|
|
|||||||
bot.oauth_token = "" # Token connecting the app to this account
|
bot.oauth_token = "" # Token connecting the app to this account
|
||||||
bot.oauth_token_secret = "" # Secret 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|
|
bot.on_message do |dm|
|
||||||
# Reply to a DM
|
# Reply to a DM
|
||||||
# bot.reply(dm, "secret secrets")
|
# bot.reply(dm, "secret secrets")
|
||||||
|
|||||||
Reference in New Issue
Block a user