Command help please

I’m new to writing commands and trying to get a random quote from a pastebin. But can’t get it to work.

Is anyone able to let me know what I’ve done wrong
My command is
$(eval a=’$(urlfetch json Dave command -’.split(’#’); a[Math.floor(Math.random()*a.length)])

1 Like

For pastebin links you usually will need so it only pulls the strings.

1 Like

Thank you for the reply.

after a lot of google searching and some trial and error I managed to get the command working, before my account was out of the (new account) holding period and my post was allowed.
I had indeed missed the /raw/ out of the command link and had some formatting in the pastebin that was causing nightbot to return error messages.

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