diff --git a/src/commands/whoami.ts b/src/commands/whoami.ts new file mode 100644 index 0000000..1942d25 --- /dev/null +++ b/src/commands/whoami.ts @@ -0,0 +1,45 @@ +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("
"); + + whoamiObj.message[r].forEach((ele, idx) => { + if (idx === whoamiObj.message[r].length - 1) { + ele += "who am I?"; + } + whoami.push(ele); + }); + + whoami.push("
"); + + return whoami; +};