Skip to content

Commit

Permalink
Color test2
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Sep 11, 2020
1 parent 61bf35b commit 458c58e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions lib/lita/handlers/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ def get_uvindex_colors
def get_aqi_colors
{ 0..50 => :green,
51..100 => :yellow,
101..150 => :red,
151..200 => :purple,
201..250 => :green,
251..300 => :lime,
301..500 => :red,
101..150 => :orange,
151..200 => :red,
201..250 => :purple,
251..300 => :pink,
301..500 => :royal,
501..9999 => :black
}
end
Expand Down
4 changes: 0 additions & 4 deletions lib/lita/handlers/irc_handlers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,6 @@ def handle_ansi_aqi(response)
reply = do_the_aqi_thing(aqis)
response.reply "AQI report for Portland, OR: PM2.5 #{reply}"
# response.reply "\x03#{colors[color]}█\x03"
colors.each do |k, v|
reply += "\x03#{colors[v]}\x03"
end
response.reply reply

end
end
Expand Down

0 comments on commit 458c58e

Please sign in to comment.