mirror of
https://github.com/kennethreitz-archive/changebot.git
synced 2026-06-05 23:40:18 +00:00
of course
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user