From 9d8e30d7f61853e6dff7d42cc2dc8dcc09e4e70b Mon Sep 17 00:00:00 2001 From: Jaiden Mispy <^_^@mispy.me> Date: Tue, 18 Nov 2014 13:26:06 +1100 Subject: [PATCH] Don't be so hasty to consider people bots --- lib/twitter_ebooks/bot.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/twitter_ebooks/bot.rb b/lib/twitter_ebooks/bot.rb index 149968b..b0e3350 100755 --- a/lib/twitter_ebooks/bot.rb +++ b/lib/twitter_ebooks/bot.rb @@ -41,8 +41,8 @@ module Ebooks # Make an informed guess as to whether this user is a bot # based on its username and reply speed def is_bot? - if @received.length > 1 - if (@received[-1].created_at - @received[-2].created_at) < 30 + if @received.length > 2 + if (@received[-1].created_at - @received[-3].created_at) < 30 return true end end