From ee771aa685e5b25afe09b5902aa85e783cf6ff7d Mon Sep 17 00:00:00 2001 From: NickTheDevOpsGuy Date: Fri, 12 Dec 2025 16:23:58 -0500 Subject: [PATCH] Adding in file --- src/commands/history/history.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/commands/history/history.ts b/src/commands/history/history.ts index 8035af28..d2e69ff5 100644 --- a/src/commands/history/history.ts +++ b/src/commands/history/history.ts @@ -54,7 +54,18 @@ export async function execute( * Build a readable transcript. */ const text = userMessages - .map((m) => `${m.author.username}: ${m.content}`) + .map((m) => { + const dt = new Date(m.createdTimestamp).toLocaleString([], { + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + hour12: false, + }); + + return `[${dt}] ${m.author.username}: ${m.content}`; + }) .join("\n"); /**