Reject tweets if they match source text at all

This commit is contained in:
Jacob Harris
2013-07-17 21:10:14 -04:00
parent 22f56a9ff7
commit 92e9529363

View File

@@ -72,7 +72,11 @@ else
tweet.gsub(/\s\w+.$/, '') # randomly losing the last word sometimes like horse_ebooks
end
break if !tweet.nil? && tweet.length < 110 && !source_tweets.any? {|t| t =~ /^#{tweet}/ || t =~ /#{tweet}$/ }
if !params["tweet"]
puts "MARKOV: #{tweet}"
end
break if !tweet.nil? && tweet.length < 110 && !source_tweets.any? {|t| t =~ /#{tweet}/ }
end
if params["tweet"]