zahmis пре 5 година
родитељ
комит
72b618403e
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      packages/slackbot-proxy/src/services/RecieveService.ts

+ 6 - 1
packages/slackbot-proxy/src/services/RecieveService.ts

@@ -1,11 +1,16 @@
+import { SlashCommand } from '@slack/bolt';
 import { Service } from '@tsed/di';
+import { parse } from '../../../slack/src/utils/slash-command-parser';
 import { openRegisterModal } from './RegisterService';
 
 
 @Service()
 export class ReceiveService {
 
-  receiveContentsFromSlack(body:{[key:string]:string}) : string {
+  receiveContentsFromSlack(body:SlashCommand) : string {
+    console.log(body);
+    const parseBody = parse(body);
+    console.log(parseBody);
     if (body.text === 'register') {
       openRegisterModal(body);