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 - Pastebin.com)’.split(’#’); a[Math.floor(Math.random()*a.length)])
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.