skeleton/bots.rb in twitter_ebooks-3.0.6 vs skeleton/bots.rb in twitter_ebooks-3.0.7
- old
+ new
@@ -44,9 +44,14 @@
def on_timeline(tweet)
# 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
MyBot.new("{{BOT_NAME}}") do |bot|
bot.access_token = "" # Token connecting the app to this account