mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 12:21:11 -05:00
slightly less paranoid about including people
This commit is contained in:
@@ -40,8 +40,8 @@ module Ebooks
|
|||||||
# Figure out whether to keep this user in the reply prefix
|
# Figure out whether to keep this user in the reply prefix
|
||||||
# We want to avoid spamming non-participating users
|
# We want to avoid spamming non-participating users
|
||||||
def can_include?(username)
|
def can_include?(username)
|
||||||
@tweets.length <= 4 ||
|
@tweets.length <= 6 ||
|
||||||
!@tweets[-4..-1].select { |t| t.user.screen_name.downcase == username.downcase }.empty?
|
!@tweets[-6..-1].select { |t| t.user.screen_name.downcase == username.downcase }.empty?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ module Ebooks
|
|||||||
# Generate some text
|
# Generate some text
|
||||||
# @param limit [Integer] available characters
|
# @param limit [Integer] available characters
|
||||||
# @param generator [SuffixGenerator, nil]
|
# @param generator [SuffixGenerator, nil]
|
||||||
# @param retry_limit [Integer] how many times to retry on duplicates
|
# @param retry_limit [Integer] how many times to retry on invalid tweet
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def make_statement(limit=140, generator=nil, retry_limit=10)
|
def make_statement(limit=140, generator=nil, retry_limit=10)
|
||||||
responding = !generator.nil?
|
responding = !generator.nil?
|
||||||
|
|||||||
Reference in New Issue
Block a user