#im not the best at java but im trying to add a funfact command to twitch but i keep gettting errors

10 messages · Page 1 of 1 (latest)

orchid cave
#

!addcom -cd=5 !truefacts $(eval a=[نزلت اوفر واتش عام ٢٠١٦ ,تأسست الإمارات عام ١٩٧١,اكثر لعبة مبيعا في العالم ماين كرافت ,ون بيس عمك];a[Math.random()*a.length])
it gives undefined

pale oxideBOT
#

This post has been reserved for your question.

Hey @orchid cave! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

orchid cave
#

i keep getting undefined on my simple code

fiery cave
#

i don't see how this is related to java?

#

a=[] this is not java syntax

orchid cave
#

i thought its jave sorry

fiery cave
#

aren't eval and $() bash stuff? bash arrays are ()

#

[] looks like js

pale oxideBOT