Просмотр исходного кода

Merge pull request #3553 from weseek/imprv/5462-share-button

Imprv/5462 share button
Yuki Takei 5 лет назад
Родитель
Сommit
ca28eb4772
1 измененных файлов с 1 добавлено и 16 удалено
  1. 1 16
      src/server/service/bolt.js

+ 1 - 16
src/server/service/bolt.js

@@ -74,21 +74,6 @@ class BoltService {
   }
 
   init() {
-    // Example of listening for event
-    // See. https://github.com/slackapi/bolt-js#listening-for-events
-    // or https://slack.dev/bolt-js/concepts#basic
-    this.bolt.command('/growi-bot', async({ command, ack, say }) => { // demo
-      await say('Hello');
-    });
-
-    // The echo command simply echoes on command
-    this.bolt.command('/echo', async({ command, ack, say }) => {
-      // Acknowledge command request
-      await ack();
-
-      await say(`${command.text}`);
-    });
-
     this.bolt.command('/growi', async({
       command, client, body, ack,
     }) => {
@@ -271,7 +256,7 @@ class BoltService {
       };
       // show "Next" button if next page exists
       if (resultsTotal > offset + PAGINGLIMIT) {
-        actionBlocks.elements.push(
+        actionBlocks.elements.unshift(
           {
             type: 'button',
             text: {