Trying to get nightbot to respond with my match details in Aoe2. Brand new to this and need some help.
This is what I am using
$(eval if(typeof($(1))=="object"&&!$(1)){try{r=$(urlfetch json https://aoe2.net/leaderboard/aoe2de/rm-1v1?search[value]=Bartender);%7Dcatch(e)%7B%27No response'}for(var i=0;i<r['data'].length;i++){ if(r['data'][i][0] == '561694198'){ break; }}}else{i=0;r=$(urlfetch json https://aoe2.net/leaderboard/aoe2de/rm-1v1?search[value]=$(querystring));%7Dtry%7Br[%27data%27][i][5].concat(%27/%27s Rank: #',r['data'][i][1],' with ',r['data'][i][2],' points');}catch(e){'User not found'})
I am getting this is a response.
Right-hand side of 'instanceof' is not an object
Anyone know what the issue is with this string of code?