Hello all, today I need some help with a search command!
I want to grab a name and waifuURL when someone specifys a specific keyword(The waifus name).
This is how the json is formatted:
{
"waifuID": {
"1": {
"names": "Megumin",
"img_url": "https://s4.anilist.co/file/anilistcdn/character/large/b89361-xH1t0q5WeAN8.png",
"claims": "#1"
},
"2": {
"names": "Mai Sakurajima",
"img_url": "https://s4.anilist.co/file/anilistcdn/character/large/b127222-IY5iDRuXLY8i.png",
"claims": "#2"
},
"3": {
"names": "Zero Two",
"img_url": "https://s4.anilist.co/file/anilistcdn/character/large/b124381-pkTKi6HHNuVR.png",
"claims": "#3"
}
}
}
I want to be able to do !search and it would give the image url + the name of the waifu.
EX.
Input: !search Zero Two
Response:
Zero Two
img_url.
Input: !search Megumin
Megumin
img_url
(These responses are in an embed)
Thats the gist of it, thanks!