Przeglądaj źródła

Merge branch 'feat/growi-bot' into feat/create-new-page-at-GROWI-side

zahmis 5 lat temu
rodzic
commit
9130d58717
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      src/server/service/bolt.js

+ 7 - 0
src/server/service/bolt.js

@@ -117,6 +117,12 @@ class BoltService {
       ack();
       return this.createPageInGrowi(view);
     });
+
+    this.bolt.action('button_click', async({ body, ack, say }) => {
+      await ack();
+      await say('clicked the button');
+    });
+
   }
 
   notCommand(command) {
@@ -182,6 +188,7 @@ class BoltService {
                   text: '検索結果をこのチャンネルに共有する',
                 },
                 style: 'primary',
+                action_id: 'button_click',
               },
             ],
           },