una
1
`$(eval const responses = ['$(eval Math.floor((Math.random() * 100) + 1)) the $(eval a=$(urlfetch json https://pastebin.com/raw/CG2QrDeS);a[Math.floor(Math.random()*a.length)]) $(eval a=$(urlfetch json https://pastebin.com/raw/gEUQL94U);a[Math.floor(Math.random()*a.length)])','ABC ']; responses[Math.floor(Math.random() * responses.length)];)`

I want the first numerical content to be more easily picked out randomly.

@una

I rewrote the command response so that all of the code is executed in one $(eval) variable:

`$(eval a=Math.round(Math.random()*1)==0?`ABC`:Math.ceil(Math.random()*100);if(a!=`ABC`){b=$(urlfetch json https://pastebin.com/raw/CG2QrDeS);c=$(urlfetch json https://pastebin.com/raw/gEUQL94U);a+=` the ${b[Math.floor(Math.random()*b.length)]} ${c[Math.floor(Math.random()*c.length)]}`;}a)`

1 Like

una
3
Thank you!

If don’t just add ‘ABC’ and want to add ‘CDF’, more parameters, where should it be placed?

I created another array at the start of the script to include other letter strings. You can add more elements to that array as you wish:

`$(eval z=[`ABC`,`CDF`];a=Math.round(Math.random()*1)==0?z[Math.floor(Math.random()*z.length)]:Math.ceil(Math.random()*100);if(!z.includes(a)){b=$(urlfetch json https://pastebin.com/raw/CG2QrDeS);c=$(urlfetch json https://pastebin.com/raw/gEUQL94U);a+=` the ${b[Math.floor(Math.random()*b.length)]} ${c[Math.floor(Math.random()*c.length)]}`;}a)`

1 Like

system
Closed
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.