|
@@ -1,19 +1,13 @@
|
|
|
import { Service } from '@tsed/di';
|
|
import { Service } from '@tsed/di';
|
|
|
-import { openModal } from '../../../slack/src/services/register';
|
|
|
|
|
|
|
|
|
|
@Service()
|
|
@Service()
|
|
|
export class ReceiveService {
|
|
export class ReceiveService {
|
|
|
|
|
|
|
|
- receive(body) {
|
|
|
|
|
|
|
+ receiveContentsFromSlack(body) {
|
|
|
if (body.text === 'register') {
|
|
if (body.text === 'register') {
|
|
|
console.log(body);
|
|
console.log(body);
|
|
|
- return this.register(body);
|
|
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- register(body) {
|
|
|
|
|
- openModal(body);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|