From 300529a4821725cfa08386f8f8a341e50759545d Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Sun, 16 Feb 2025 01:31:49 +0000 Subject: [PATCH 1/2] enhancement(lint): Fix lint errors for src/modules/watchMyIrl.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/modules/watchMyIrl.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/watchMyIrl.ts b/src/modules/watchMyIrl.ts index 2919079..15f08d2 100644 --- a/src/modules/watchMyIrl.ts +++ b/src/modules/watchMyIrl.ts @@ -38,7 +38,11 @@ export async function watchTimezone(app: ModifiedApp, data: IrlData) { m: m.ts, }); } else { - if (app.db.get(`tz`) && !mainTimezone.includes(app.db.get('tz')) && mainTimezone.includes(tz)) { + if ( + app.db.get(`tz`) && + !mainTimezone.includes(app.db.get("tz")) && + mainTimezone.includes(tz) + ) { await app.client.chat.postMessage({ thread_ts: app.db.get(`tz`).m, text: `Neon is back to his normal tz`, From 1e7fd06c11a4b102a15fb81a2ad2a5342dbb8923 Mon Sep 17 00:00:00 2001 From: "zeon-neon[bot]" <136533918+zeon-neon[bot]@users.noreply.github.com> Date: Sun, 16 Feb 2025 01:31:50 +0000 Subject: [PATCH 2/2] enhancement(lint): Fix lint errors for src/commands/zeon_message.ts Co-authored-by: NeonGamerBot-QK Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com> --- src/commands/zeon_message.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/zeon_message.ts b/src/commands/zeon_message.ts index e112055..9ce5ff6 100644 --- a/src/commands/zeon_message.ts +++ b/src/commands/zeon_message.ts @@ -184,14 +184,14 @@ export default class Message implements Command { }); break; } - for(const r of [...aiReq.reactions, aiReq.type]) { - try { - await app.client.reactions.add({ - channel: event.channel, - timestamp: event.ts, - name: aiReq.type, - }); - } catch (e) {} + for (const r of [...aiReq.reactions, aiReq.type]) { + try { + await app.client.reactions.add({ + channel: event.channel, + timestamp: event.ts, + name: aiReq.type, + }); + } catch (e) {} } } catch (e) { app.client.chat.postMessage({