So, I need a script that can search a document (I will supply later...) and return with an ID.
So, anything listed under the "contents": [ will be supplied by the user in the command and the bot will return with the ID ("id": "GFX00.bin",) each different section on this list has its own ID.
Example:
<AlphaTech> !ab findgfx Feather
<MyBot> Feather: GFX00.bin
Example 2:
<AlphaTech> !ab findgfx Torpedo Ted
<MyBot> Torpedo Ted: GFX06.bin
Example 3:
<AlphaTech> !ab findgfx blah
<MyBot> blah: Graphic Not Found.
I need to command to be !ab findgfx (content)
Document:
https://dl.dropbox.com/s/5wcwc3694yuj7bl/gfxlist.json
(If this helps, it is a json file...)
Thank You!