diff --git a/src/listeners/commands/notifyCommand.ts b/src/listeners/commands/notifyCommand.ts new file mode 100644 index 0000000..0007d95 --- /dev/null +++ b/src/listeners/commands/notifyCommand.ts @@ -0,0 +1,12 @@ +import { Middleware, SlackCommandMiddlewareArgs } from "@slack/bolt"; +import { logCommandUsed } from "../../utils/logging"; +import { postEphemeralMessage } from "../../utils/slack"; + +const message = `For more information, check out .`; + +export const notifyCommandHandler: Middleware = async ({ command, ack, client }) => { + await ack(); + await logCommandUsed(command); + + await postEphemeralMessage(client, command.channel_id, command.user_id, message); +}; \ No newline at end of file