mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 12:21:11 -05:00
Less strict anti-bot strategies
This commit is contained in:
@@ -37,12 +37,10 @@ module Ebooks
|
|||||||
usertweets = @tweets.select { |t| t.user.screen_name.downcase == username.downcase }
|
usertweets = @tweets.select { |t| t.user.screen_name.downcase == username.downcase }
|
||||||
|
|
||||||
if usertweets.length > 2
|
if usertweets.length > 2
|
||||||
if (usertweets[-1].created_at - usertweets[-3].created_at) < 10
|
if username.include?('ebooks') || (usertweets[-1].created_at - usertweets[-3].created_at) < 12
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
username.include?("ebooks")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Figure out whether to keep this user in the reply prefix
|
# Figure out whether to keep this user in the reply prefix
|
||||||
|
|||||||
Reference in New Issue
Block a user