I am creating a song-request command (yes I know there is already one) and I am using the command !sr.
My command says:
$(eval a=$(urlfetch json http s://pastebin.com/AgHEzit1))
(space in between http and s to not make it a link in the forum)
My JavaScript says:
if ($(1) == null) {$(user) you have to type a song name!} else {$(user) requested $(query)!}
This doesn't work and comes back with:
Right-hand side of 'instanceof' is not an object
What can I do to fix this?