Well firstly is should be $(eval) , also it looks like s is undefined.
I can just write out something that should work for you If you want or feel free to problem solve yourself up to you.
Hello again! I was just wondering if you could elaborate on some questions I have so I can code some others in the future without having to rely on help…
d="$(1)";
a=`$(query)`.split(``)
Can you tell me what $(1) does?
as well as the $(query)?
I’m guess they are parameters, but I can’t find any documentation anywhere (I’m probably looking in the wrong spots) of what they mean and what they do…
They are nightbot variables you can find them on the help docs..
$(query) takes everything said after the command and $(1) only takes the first word (or whenever the first space comes)
The reason I used the $(1) is to test whether it’s null or not (I tried with $(query) but it didn’t output null for some reason)
And $(query) is just take everything said and then splitting it into an array