Right-hand side of 'instanceof' is not an object Error

Asked Apr 11, 2020·2 replies·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

This code doesn’t work idk why
$(eval if(!$(query)){Please ask a Question ( !8ball <Question> )}else{r=[“It is certain”,”It is decidedly so”,”Without a doubt”,”Yes definitely”,”You may rely on it”,”As I see it, yes”,”Most likely”,”Yes”,”Signs point to yes”,”Reply hazy, try again”,”Ask again later”,”Better not tell you now”,”Cannot predict now”,”Don’t count on it”,”My reply is no”,”My sources say no”,”Very doubtful”];(r[ Math.floor(Math.random() * r.length) ])+ @$(user)})
Please help. I feel like maybe twitch has changed stuff recently because most commands don’t work now all of a sudden.

2 replies

Cleaned up.

$(eval if(!decodeURIComponent(`$(querystring)`)){`Please ask a Question (!8ball)`;}else{r=[`It is certain`,`It is decidedly so`,`Without a doubt`,`Yes definitely`,`You may rely on it`,`As I see it, yes`,`Most likely`,`Yes`,`Signs point to yes`,`Reply hazy, try again`,`Ask again later`,`Better not tell you now`,`Cannot predict now`,`Don’t count on it`,`My reply is no`,`My sources say no`,`Very doubtful`];r[Math.floor(Math.random()*r.length)]+` @$(user)`;})

Thanks king! ❤️🥰 I really appreciate it.

smiling_face_with_three_hearts.pngheart.png