|
@@ -5,13 +5,17 @@
|
|
|
|
|
|
|
|
const { markdownSectionBlock } = require('@growi/slack');
|
|
const { markdownSectionBlock } = require('@growi/slack');
|
|
|
|
|
|
|
|
-module.exports = () => {
|
|
|
|
|
|
|
+module.exports = (crowi) => {
|
|
|
const BaseSlackCommandHandler = require('./slack-command-handler');
|
|
const BaseSlackCommandHandler = require('./slack-command-handler');
|
|
|
const handler = new BaseSlackCommandHandler();
|
|
const handler = new BaseSlackCommandHandler();
|
|
|
|
|
|
|
|
handler.handleCommand = async(growiCommand, client, body, respondUtil) => {
|
|
handler.handleCommand = async(growiCommand, client, body, respondUtil) => {
|
|
|
|
|
+ const appTitle = crowi.appService.getAppTitle();
|
|
|
|
|
+ const appSiteUrl = crowi.appService.getSiteUrl();
|
|
|
// adjust spacing
|
|
// adjust spacing
|
|
|
let message = '*Help*\n\n';
|
|
let message = '*Help*\n\n';
|
|
|
|
|
+ message += `GROWI App Title: *${appTitle}*`;
|
|
|
|
|
+ message += `GROWI Url: ${appSiteUrl}`;
|
|
|
message += 'Usage: `/growi [command] [args]`\n\n';
|
|
message += 'Usage: `/growi [command] [args]`\n\n';
|
|
|
message += 'Commands:\n\n';
|
|
message += 'Commands:\n\n';
|
|
|
message += '`/growi note` Take a note on GROWI\n\n';
|
|
message += '`/growi note` Take a note on GROWI\n\n';
|