Multiple $(eval) returns on single command

Hi I’m having some troubles trying to run multiples $eval functions on the same command, my Idea is making a “Random” comment using 3 $(eval) return and end having someting like this:

$(eval a=[“X”,“Y”,“Z”,“W”];a[Math.floor(Math.random()*a.length)]); $(eval c=[“X”,“Y”,"Z,“W”];c[Math.floor(Math.random()*c.length)]); $(eval b=[“X”,“Y”,“Z”];b[Math.floor(Math.random()*b.length)]) $(touser)

But there’s no response once the command is called, no error, no variable undefined or anything.

i would avoid using multiple eval statements in a single message, as it may be too slow to respond.

$(eval const a = [`X`,`Y`,`Z`, `W`]; const b = [`X`,`Y`,`Z`]; const c = [`X`,`Y`,`Z`, `W`]; a[Math.floor(Math.random()*a.length)] + b[Math.floor(Math.random()*b.length)] + c[Math.floor(Math.random()*c.length)])

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