TeamLumi / luminescent-team

GNU Affero General Public License v3.0
12 stars 5 forks source link

added location util and test #68

Closed fakuzatsu closed 11 months ago

fakuzatsu commented 11 months ago

Based on the same functioning code I implimented in the bot, except converted to ES. Should return an array of organised locations, with the same structure as can be seen in the bot. Note however that formatting in the bot is done after the function returns, so the function in the website would still return the basic text for location types "ground_mons", "sugoimons", etc rather than ":grass: Grass", "superrod: Super Rod", etc.

I can change this function very easily to stop running the structure cleanup and just return an individual object for each location if thats what we want for the site.