RecieveService.ts 360 B

123456789101112131415
  1. import { Service } from '@tsed/di';
  2. import { SlashCommand } from '@slack/bolt';
  3. @Service()
  4. export class ReceiveService {
  5. receiveContentsFromSlack(body:SlashCommand) : string {
  6. if (body.text === 'register') {
  7. console.log('register action occured');
  8. return 'register action occurd';
  9. }
  10. return 'return receiveContentsFromSlack';
  11. }
  12. }