How to import data from a JSON into a Discord Bot Embed message? : I'm a complete dummy, trying to code a Discord.js bot without any prior coding knowledge. I'm trying to learn as I go. So, the project we are trying to make is a bot that will reply with a discord embed message. It's discord for an online game, where there are multiple different characters. Each of them have unique stats, skills and type. So the idea is to fill a JSON with all the information on all units, then have people use .unitname and have the bot reply with an embed will all information about that unit. This is how it should look like: https://i.imgur.com/Uc4F3En.png (sorry, I can't post images).

First of all, adding dozens of different commands for every single unit doesn't seem right, so I'm having the bot check every single message for a potential unit request. This does sounds pretty unoptimized for me, but will it slow down the bot in practice? And how would I code it to recognize something as .OneOfDozensOfPossibleUnits? Maybe I could have a separate list with all unit names, and have it trigger at .AnyOfThose, but is that the optimal way to do it?

Let's say the bot recognizes .Lucius as a unit request. He will have to look into the JSON file with dozens of units and gather data from Lucius specifically. How do I do that? Then I would have data saved, like stats, for example. Those would have to go in the places I called "variable" (check the code), but what's the syntax for that? I would also like to add some extra "if"s (for example, if unit type = "defense", make the color blue). This one I can probably search and find the syntax for, but I'd be really glad if you could include it.

Sorry, this is such a "do the work for me, please" post, but it can't be helped, haha. I would usually take my time and learn everything bit by bit, but since this is a community project, I'm going blind into a lot of areas. Please let me know if you have any other tips or if you found potential flaws in the program. Thank you in advance!

```
client.on('message', message => {
  if (message.content === '.' + "unit") {
    const embed = new Discord.RichEmbed()
    .setAuthor("Author", "https://lh3.googleusercontent.com/rA0lKRGI_-bP-Jj4nkVc5lm6WJfO3nYlAz089otvQnLeevIoao1CTvaU0l0dqnnWIvLZTSOTaEwj6W04IZSRHQz3NYWiePtJnW3bANh54aI=w120")
    .setColor(0xFF0000)
    .addField("<:stats:545991150486421514> Stats", "⧫ ATK: " + "variable" + "\r\n ⧫ HP: " + "variable" + "\r\n ⧫ DEF: " + "variable", true)
    .addField("\u200B", "⧫ CRIT RATE: " + "variable" + "\r\n ⧫ CRIT DMG: " + "variable" + "\r\n ⧫ AGI: " + "variable", true)
    .addField("<:skills:545991578355761152> Skills", "Skill descriptions")
    .setImage("https://lh3.googleusercontent.com/rA0lKRGI_-bP-Jj4nkVc5lm6WJfO3nYlAz089otvQnLeevIoao1CTvaU0l0dqnnWIvLZTSOTaEwj6W04IZSRHQz3NYWiePtJnW3bANh54aI=w120", 2, 2)
    .setThumbnail("https://lh3.googleusercontent.com/rA0lKRGI_-bP-Jj4nkVc5lm6WJfO3nYlAz089otvQnLeevIoao1CTvaU0l0dqnnWIvLZTSOTaEwj6W04IZSRHQz3NYWiePtJnW3bANh54aI=w120")
    .setFooter("Footer", "https://lh3.googleusercontent.com/rA0lKRGI_-bP-Jj4nkVc5lm6WJfO3nYlAz089otvQnLeevIoao1CTvaU0l0dqnnWIvLZTSOTaEwj6W04IZSRHQz3NYWiePtJnW3bANh54aI=w120");
        message.channel.send(embed);
```
