Hi there, pretty new to this but maybe someone can help.
I've formulated the below command for nightbot, that fetches the users last csgo faceit match details, but the command returns Invalid Variable.
The url returns json which I have then attempted to format into a sentence, the reason why I'm using "[0]" is because the json contains an array of matches, and I only need the details of the first in the array.
$(lfm = $(urlfetch json http://api.satont.ru/faceit?nick=lawsn));jlfm=JSON.parse(lfm);'lawsn's last faceit match on ${jlfm[0].map} ended ${jlfm[0].teamScore} [${jlfm[0].result}]. ${jlfm[0].kills}-${jlfm[0].deaths} KD (${jlfm[0].kd} K/D), HS (${jlfm[0].hs.percentage})')