Bot can now respond to favorite events.
I wrote this for myself, but I thought I would share!
This commit is contained in:
parent
235684d8f1
commit
3cea0c83e2
2 changed files with 16 additions and 4 deletions
|
@ -46,6 +46,11 @@ class MyBot < Ebooks::Bot
|
|||
# Reply to a tweet in the bot's timeline
|
||||
# reply(tweet, "nice tweet")
|
||||
end
|
||||
|
||||
def on_favorite(user, tweet)
|
||||
# Follow user who just favorited bot's tweet
|
||||
# follow(user.screen_name)
|
||||
end
|
||||
end
|
||||
|
||||
# Make a MyBot and attach it to an account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue