I am looking to cut down my command a bit
This is currently how I approach the issue
$(eval cards = $(urlfetch json https://pastebin.com/raw/xxxxx); pick = cards[Math.floor(Math.random() * cards.length)]; BlahBlah1 ${pick.name} BlahBlah2 ${pick.meaning}.
$(eval cards = $(urlfetch json https://pastebin.com/raw/xxxxx); pick = cards[Math.floor(Math.random() * cards.length)]; BlahBlah3 ${pick.name} BlahBlah 4 ${pick.meaning}.
Pastebin 1
[
{
“name”: “Person1intro Goes Here”,
“meaning”: “person1 longer response goes here”
},
]
Pastebin2
[
{
“name”: “Person2intro Goes Here”,
“meaning”: “person2 longer response goes here”
},
{
“name”: “Person2intro Goes Here”,
“meaning”: “person2 longer response goes here”
},
{
“name”: “Person2intro Goes Here”,
“meaning”: “person2 longer response goes here”
},
]
So the first BlahBlah1 and BlahBlah2 is for response(person1) and then BlahBlah3 and BlahBlah4 is a response(person2)
What I was looking to do is pull all the data from one pastebin more so for a clean code.
I just can’t remember how all that works anymore…
any help is welcomed - JTS