Parcourir la source

Changed position of buttons, deleted echo, share

Steven Fukase il y a 5 ans
Parent
commit
19873ccfac
2 fichiers modifiés avec 3 ajouts et 14 suppressions
  1. 2 2
      config/env.dev.js
  2. 1 12
      src/server/service/bolt.js

+ 2 - 2
config/env.dev.js

@@ -22,6 +22,6 @@ module.exports = {
   // DEV_HTTPS: true,
   // FORCE_WIKI_MODE: 'private', // 'public', 'private', undefined
   // PROMSTER_ENABLED: true,
-  // SLACK_SIGNING_SECRET: '',
-  // SLACK_BOT_TOKEN: '',
+  SLACK_SIGNING_SECRET: '90388b8786db74bcbd2a77d18e4e0202',
+  SLACK_BOT_TOKEN: 'xoxb-165254347429-1645771202130-DvRziEURxxinhWTRoEDlZ956',
 };

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

@@ -77,17 +77,6 @@ class BoltService {
     // 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 +260,7 @@ class BoltService {
       };
       // show "Next" button if next page exists
       if (resultsTotal > offset + PAGINGLIMIT) {
-        actionBlocks.elements.push(
+        actionBlocks.elements.unshift(
           {
             type: 'button',
             text: {