I keep getting an "Unexpected identifier" message when I test my command.

So I created a command meant to use a random message from a pastebin i made and when I was trying to test it i got “unexpected identifier” back…

The code is: $(eval a=$(urlfetch json https://pastebin.com/raw/Ts7iVfHj);a[Math.floor(Math.random()*a. length)])

Any help would be appreciated!

try the following:

$(eval let a=$(urlfetch json https://pastebin.com/raw/Ts7iVfHj); a[Math.floor(Math.random()*a. length)])

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.