Currently my command is
$(eval a = `$(twitch $(channel) "{{uptimeLength}}")`;a.includes("hour")?a=parseInt(a)*60+59:a=parseInt(a);m=`$(urlfetch json https://api.henrikdev.xyz/valorant/v1/mmr-history/na/$(1)/$(2))`;r=JSON.parse(m);m=0;w=0;l=0;c=new Date();c.setMinutes(c.getMinutes()-a);for(i=0;i<r.data.length;i++){d=new Date(r.data[i].date);p=r.data[i].mmr_change_to_last_game;if(d<c){break;}p>0?w+=1:l+=1;m+=p;} `${m >= 0 ? `Up ${m}` : `Down ${m}`}RR ${w}-${l}`;)
This command allows a user to search up the match history by entering two arguments
name tag
i was wondering if there was a way that a user can just enter it as one argument such as
butter#pop and it would be split by #