NightDev Community Forums

Help with 8ball command

Hello I’m editing an 8ball command for a stream to some inside jokes. For some reason I can’t get it right. Please see below. Am I missing something? Ps I added a space at the end because it made an wink face emoji. Ik in general there isn’t a space there.

!commands add !8ball $(eval const responses = [‘Most likely… if you are not afraid anymore’, ‘Buddy says most likatuba’, Most likely, you little twat.’]; responses[Math.floor(Math.random() * responses.length)]; )

!commands add !8ball $(eval const responses = ['Most likely… if you are not afraid anymore', 'Buddy says most likatuba', 'Most likely, you little twat.']; responses[Math.floor(Math.random() * responses.length)];)

It’s still not working :confused:

Hey @oneandonlyoceania!

This should work, I tested it, so if it still doesn’t work make sure you copy/pasted properly.
If you still get an error, I think it may be due to YouTube’s character limitation, so here’s a shorter version:

!addcom !8ball $(eval r=[`Most likely… if you are not afraid anymore`,`Buddy says most likatuba`,`Most likely, you little twat.`];r[Math.floor(Math.random()*r.length)];)
1 Like

Thank you it worked!!!