|
|
@@ -53,27 +53,6 @@ export class SlackCtrl {
|
|
|
@Inject()
|
|
|
unregisterService: UnregisterService;
|
|
|
|
|
|
- @Get('/install')
|
|
|
- async install(): Promise<string> {
|
|
|
- const url = await this.installerService.installer.generateInstallUrl({
|
|
|
- // Add the scopes your app needs
|
|
|
- scopes: [
|
|
|
- 'channels:history',
|
|
|
- 'commands',
|
|
|
- 'groups:history',
|
|
|
- 'im:history',
|
|
|
- 'mpim:history',
|
|
|
- 'chat:write',
|
|
|
- 'team:read',
|
|
|
- ],
|
|
|
- });
|
|
|
-
|
|
|
- return `<a href="${url}">`
|
|
|
- // eslint-disable-next-line max-len
|
|
|
- + '<img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcSet="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/add_to_slack@2x.png 2x" />'
|
|
|
- + '</a>';
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Send command to specified GROWIs
|
|
|
* @param growiCommand
|