Urlfetch with two sources

Asked Jun 17, 2021·2 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi i would like to create a command with two sources. how can i add a second to my first?

$(eval var test= "$(urlfetch json PASTEBINLIST) ".split("#"); test[Math.floor(Math.random() * (test.length - 1))];)

it should first random post a text from the first pastebin and then a random text from a second pasebin list

best regards

2 replies

I have an alternative api that may suits for you to use. DM me so we can work this out together.

Trusty Whale said:
$(eval var test= “$(urlfetch json PASTEBINLIST) “.split(”#”); test[Math.floor(Math.random() * (test.length - 1))]😉

figured it out

$(eval var test= “$(urlfetch json PASTEBINLIST1) “.split(”#”); test[Math.floor(Math.random() * (test.length - 1))];) $(eval var test= “$(urlfetch json PASTEBINLIST2) “.split(”#”); test[Math.floor(Math.random() * (test.length - 1))];)