|
|
@@ -70,7 +70,7 @@ def load_and_run(agents)
|
70
|
70
|
recent_tweets.shift if recent_tweets.length > DUPLICATE_DETECTION_LENGTH
|
71
|
71
|
puts status["text"]
|
72
|
72
|
filter_to_agent_map.keys.each do |filter|
|
73
|
|
- if (filter.downcase.split(SEPARATOR) - status["text"].downcase.split(SEPARATOR)).reject(&:empty) == [] # Hacky McHackerson
|
|
73
|
+ if (filter.downcase.split(SEPARATOR) - status["text"].downcase.split(SEPARATOR)).reject(&:empty?) == [] # Hacky McHackerson
|
74
|
74
|
filter_to_agent_map[filter].each do |agent|
|
75
|
75
|
puts " -> #{agent.name}"
|
76
|
76
|
agent.process_tweet(filter, status)
|