Gosh, $(touser) $(eval const responses = [' is a dumb, stupid, idiot!', ' is the WORST!', ' stinks, stinks REAL bad!'])
Help - eval giving me Undefined error
1 reply
Hey @Cozy Shark!
I mean, you don't even pick a response from your list... The error you get is because you use wrong quotation marks tho': ’ instead of ', " or better yet `` ```.
Here's a fix:
$(eval r=[`is a dumb, stupid, idiot`,`is the WORST`,`stinks, stinks REAL bad`]; `Gosh, $(touser) ${r[Math.floor(Math.random()*r.length)]}!`)