of course

This commit is contained in:
Chris Wanstrath
2010-12-14 03:57:32 -08:00
parent b4a1d9f6e1
commit a56d7aaffd
+1 -1
View File
@@ -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