Skip to content

Commit

Permalink
of course
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 14, 2010
1 parent b4a1d9f commit a56d7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botart.coffee
Expand Up @@ -140,7 +140,7 @@ hear /weather in (.+)/i, (message) ->
console.log body
if match = body.match(/<current_conditions>(.+?)<\/current_conditions>/)
icon = match[1].match(/<icon data="(.+?)"/)
degrees = match[1].match(/<temp_f data="(\d+?)"/)
degrees = match[1].match(/<temp_f data="(.+?)"/)
message.say "#{degrees[1]}° — http://www.google.com#{icon[1]}"
catch e
console.log "Weather error: " + e
Expand Down

0 comments on commit a56d7aa

Please sign in to comment.