diff --git a/features/command.ts b/features/command.ts index 955ca0a..dd080c2 100644 --- a/features/command.ts +++ b/features/command.ts @@ -43,6 +43,14 @@ const command = async () => { action_id: "reset-password", style: "danger", }, + { + type: "button", + text: { + type: "plain_text", + text: "gutentag!", + }, + action_id: "bye", + }, ], }, { @@ -112,6 +120,14 @@ const command = async () => { text: "No worries! If you change your mind just type `/hackatime` again ^-^", }); }); + + slackApp.action("bye", async ({ context }) => { + if (context?.respond) + await context.respond({ + response_type: "ephemeral", + text: "bye!!! :goodnight:", + }); + }); }; export default command;