Hello guys, how are you all?
I saw this command in a few posts and I couldn’t understand very well, because my english is horrible. I tried it anyway and now I’m here.
I want to use a eval command in my stream that when a specific number is choosen it’s typed a specific response:
$(eval Math.floor((Math.random() * 100))
Then copy/paste the command they wrote, replacing XXXXXXXX with the id of your paste.
$(eval z=decodeURIComponent;const a=z("$(querystring $(user))"),{die:b,responses:c}=JSON.parse(z("$(querystring $(urlfetch json https://pastebin.com/raw/XXXXXXXX))")),d=(a=>Math.ceil(Math.random()*a))(b),e=((a,b)=>{const c=Object.keys(a).map(Number).sort((c,a)=>a-c);for(const d of c)if(b>=d)return a[d];throw new Error("responses")})(c,d);`${a} rolls the D${b} and hits a ${d}. ${e}`)