oh, ok, um... well nightbot doesn't accept anything into command variable except as input from another source... so u'd need to split that up and do the first $(urlfetch) in a command by itself and then alias that command to a second command for the rest of it... like this...
$(eval const l=$(urlfetch json https://rtirl.com/api/pull?key=<API key>);`${l.location.latitude} ${l.location.longitude}`)
and for the second command...
$(eval const w=$(urlfetch json https://api.openweathermap.org/data/2.5/weather?lat=$(1)&lon=$(2)&appid=<API key>);w.main.temp)
edit: ok, i misspoke slightly, it will only accept data as input from an outside source OR hard coded directly in the command variable... so if u knew those coordinates offhand, u could plug them directly into that second command and skip the first one altogether... in fact i'd probly recommend that so it would only have to do a single urlfetch and respond faster ;) (note: u could run the first command without it being aliased to get that info and then just replace the $(1) and $(2) )