From cddf154d77bc54e1f81b3339de65154b060b4dfa Mon Sep 17 00:00:00 2001 From: Saahil Date: Thu, 10 Apr 2025 23:51:02 -0400 Subject: [PATCH] add: logging --- src/commands/joinchannel.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands/joinchannel.ts b/src/commands/joinchannel.ts index 285f844..57a4ba0 100644 --- a/src/commands/joinchannel.ts +++ b/src/commands/joinchannel.ts @@ -27,7 +27,13 @@ export default class JoinNeonschannel implements Command { app.command(this.name, async ({ command, ack, respond }) => { // const stamp = Date.now(); await ack(); - +try { + await app.client.chat.postMessage({ +text: `<@${command.user_id}> is trying to join <#C07R8DYAZMM>...`, +channel: "C07LGLUTNH2" + }) +} catch (e) { +} // if (onlyForMe(command.user_id)) // return respond(`:x: you are the channel owner.`); try {