Skip to content

Commit

Permalink
Added more insults to CF listener and cleaned up phrasing of room.speak
Browse files Browse the repository at this point in the history
  • Loading branch information
timnovinger committed Sep 15, 2009
1 parent 1436b32 commit b193462
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions bot.rb
Expand Up @@ -264,19 +264,21 @@ def fetch_or_create_user(name)
# ================
# = *COLD FUSION =
# ================
technologies = ["cold fusion", "coldfusion", "CF"]
insults = ["antiquated", "lame", "needing Chuck Norris to deal the death blow"]
insults += ["FTS!", "needing not be mentioned anymore"]
insults += ["..., wait, someone still uses that?", "in my mind stuck in the bucket with COBOL and FORTRAN"]
insults += ["on it's death bed", "showing it's age", "dead to me"]
insults += ["amateur", "worse than chapped lips when skiing", "relatively enjoyable compared to a vasectomy"]
technologies = ["cold fusion", "coldfusion", "CF", "CFM"]
insults = ["is antiquated", "is lame", "is needing Chuck Norris to deal the death blow"]
insults += ["is FTS!", "is needing not be mentioned anymore"]
insults += ["..., wait, someone still uses that?", "is in my mind stuck in the bucket with COBOL and FORTRAN"]
insults += ["is on it's death bed", "is showing it's age", "is dead to me"]
insults += ["is amateur", "is worse than chapped lips when skiing", "is relatively enjoyable compared to a vasectomy"]
insults += ["isn't that just Java?", "Didn't it create MySpace? Let's not forget that mistake..."]
insults += ["Mr. T pities the fool", "Altair, Macromedia, Adobe...who's your daddy?"]

technologies.each do |t|
if message[:message].downcase.match(t.downcase)
room.speak "#{t} is " + insults[rand(insults.size)].to_s
room.speak "#{t} " + insults[rand(insults.size)].to_s
end
end

end

end
end
2 changes: 1 addition & 1 deletion lib/listener.rb
Expand Up @@ -4,7 +4,7 @@ class Listener
FUNNY =
[/\smom\s?/i, "Hey now, no reason to drag someone's mom into this."],
[/Fort Wayne/i, "Fort Wayne FTW!"],
[/gem/i, "Oooooh shiny!!!"]
[/\sgem\s/i, "Oooooh shiny!!!"]

# Other categories here?

Expand Down

0 comments on commit b193462

Please sign in to comment.