Преглед изворни кода

Modified response messages

hakumizuki пре 4 година
родитељ
комит
56c63d9dbd

+ 1 - 1
packages/slackbot-proxy/src/controllers/slack.ts

@@ -208,7 +208,7 @@ export class SlackCtrl {
         channel: body.channel_id,
         user: body.user_id,
         blocks: [
-          generateMarkdownSectionBlock(`It is not allowed to run *'${growiCommand.growiCommandType}'* command from this channel.`),
+          generateMarkdownSectionBlock(`It is not allowed to run *'${growiCommand.growiCommandType}'* command to this GROWI.`),
         ],
       });
     }

+ 1 - 1
src/server/routes/apiv3/slack-integration.js

@@ -75,7 +75,7 @@ module.exports = (crowi) => {
 
     // validate
     if (!supportedCommands.includes(command)) {
-      return res.status(403).send(`It is not allowed to run '${command}' command from this channel.`);
+      return res.status(403).send(`It is not allowed to run '${command}' command to this GROWI.`);
     }
 
     next();