From 5bfb6b1ebaaff94ca0ced0e9a6056906cd759adc Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Sun, 17 Nov 2024 03:25:39 +0000 Subject: [PATCH] enhancement(lint): Fix lint errors for src/modules/howWasYourDay.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/modules/howWasYourDay.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/howWasYourDay.ts b/src/modules/howWasYourDay.ts index f760510..28cc0ca 100644 --- a/src/modules/howWasYourDay.ts +++ b/src/modules/howWasYourDay.ts @@ -65,14 +65,14 @@ export default async function (app: ModifiedApp, channel = `C07R8DYAZMM`) { channel, text: getStr, }); - const formattedHacktimeResults = await hacktime.getStatusBar().then(d => { - return d.map(e => `- *${e.name}*: \`${e.text}\``).join('\n') - }) + const formattedHacktimeResults = await hacktime.getStatusBar().then((d) => { + return d.map((e) => `- *${e.name}*: \`${e.text}\``).join("\n"); + }); app.client.chat.postMessage({ channel, thread_ts: mobj.ts, - text: `Here are your :wakatime-dark: hacktime stats for today:\n${formattedHacktimeResults}` - }) + text: `Here are your :wakatime-dark: hacktime stats for today:\n${formattedHacktimeResults}`, + }); const today = new Date(); const codewatcherForToday = ( (app.db.get("git_session") || []) as GitSession[] @@ -97,5 +97,4 @@ export default async function (app: ModifiedApp, channel = `C07R8DYAZMM`) { text: `Well well well it also looks like you were using codewatcher today\n${codewatcherForToday.some((d) => d.repo.includes("zeon")) ? "> and i see u worked on some of my code :D you better have not fucked me up\n" : ""}Anyways here are the projects you recorded:\n> ${codewatcherForToday.map((d) => `Project: ${d.repo} which was recorded in <#${d.channel}> and lasted for an for ${ms(Math.round((d.ended_at || Date.now()) - d.started_at))} - [], [<${d.mlink}|message link>] `).join("\n> ")}`, }); } - }