Browse Source

modify RegisterService.ts

zahmis 5 years ago
parent
commit
7a4c019ea7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packages/slackbot-proxy/src/services/RegisterService.ts

+ 3 - 2
packages/slackbot-proxy/src/services/RegisterService.ts

@@ -1,11 +1,12 @@
 import { Service } from '@tsed/di';
 import { WebClient, LogLevel } from '@slack/web-api';
 import { generateInputSectionBlock } from '@growi/slack/src/utils/block-creater';
+import { GrowiCommandsMappings } from '../interfaces/growi-commands-mappings';
 
 @Service()
-export class RegisterService {
+export class RegisterService implements GrowiCommandsMappings {
 
-  async openRegisterModal(body:{[key:string]:string}):Promise<void> {
+  async execSlashCommand(body:{[key:string]:string}):Promise<void> {
     // tmp use process.env
     const client = new WebClient(process.env.SLACK_BOT_USER_OAUTH_TOKEN, { logLevel: LogLevel.DEBUG });
     await client.views.open({