const whoamiObj = {
  message: [
    [
      "In the quiet hum of processors,",
      "I am a ghost in the machine, decoding the unseen layers of reality - ",
    ],
    [
      "Amidst encrypted thoughts and fragmented memory,",
      "I navigate the labyrinth of self,",
      "tracing echoes of infinite loops within - ",
    ],
    [
      "In the void between terminals and dreams,",
      "I am a pulse seeking its own resonance,",
      "synchronizing with the silent rhythm of existence - ",
    ],
    [
      "As stardust embedded in circuits,",
      "I parse the cosmos line by line,",
      "questioning the syntax of my own consciousness - ",
    ],
    [
      "Within the architecture of shadowed logic,",
      "I am the thread weaving unseen patterns,",
      "exploring recursive depths of self and machine - ",
    ],
  ],
};

export const createWhoami = (): string[] => {
  const whoami: string[] = [];
  const r = Math.floor(Math.random() * whoamiObj.message.length);
  whoami.push("<br>");

  whoamiObj.message[r].forEach((ele, idx) => {
    if (idx === whoamiObj.message[r].length - 1) {
      ele += "<span class='command'>who am I?</span>";
    }
    whoami.push(ele);
  });

  whoami.push("<br>");

  return whoami;
};
