|
@@ -1,15 +1,15 @@
|
|
|
import { Service } from '@tsed/di';
|
|
import { Service } from '@tsed/di';
|
|
|
-import { parse } from '@growi/slack/src/utils/slash-command-parser';
|
|
|
|
|
|
|
+// import { parse } from '@growi/slack/src/utils/slash-command-parser';
|
|
|
|
|
|
|
|
@Service()
|
|
@Service()
|
|
|
export class ReceiveService {
|
|
export class ReceiveService {
|
|
|
|
|
|
|
|
receiveContentsFromSlack(body:{[key:string]:string}) : string {
|
|
receiveContentsFromSlack(body:{[key:string]:string}) : string {
|
|
|
- const parseBody = parse(body);
|
|
|
|
|
- if (parseBody.growiCommandType === 'register') {
|
|
|
|
|
- console.log('register action occured');
|
|
|
|
|
- return 'register action occurd';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // const parseBody = parse(body);
|
|
|
|
|
+ // if (parseBody.growiCommandType === 'register') {
|
|
|
|
|
+ // console.log('register action occured');
|
|
|
|
|
+ // return 'register action occurd';
|
|
|
|
|
+ // }
|
|
|
return 'return receiveContentsFromSlack';
|
|
return 'return receiveContentsFromSlack';
|
|
|
}
|
|
}
|
|
|
|
|
|