I would also like to know how I can bypass the character limit that the nightbot custom commands have? I know i can use pastebin but I dont see any tutorials on how to have code inside pastebin and fetch from there.
For example in this command i would also like to add if the channel status is offline the command would be disabled but it would be too long to add.
for this first portion, all u needa do is make that command the second command that a smaller command aliases to…
command 1…
$(eval `$(query)`.replace(`#`,` `))
then alias that to the command u have and u’re done… OR… i was able to tweak it enough to squeeze in the only work while u’re streaming functionality like this…
$(eval a=`$(twitch $(channel) "{{uptimeLength}}")`;b=(a)=>{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}`};a.includes(` not `)?`Please try again when I'm online`:b(a))
as far as the pastebin bit, well, i’m still learning that too… i know how to get data that way, but still working out how to run code from there