mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
Bot can now respond to favorite events.
I wrote this for myself, but I thought I would share!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user