|
@@ -329,9 +329,6 @@ export class SlackCtrl {
|
|
|
async handleEvent(@Req() req: SlackOauthReq): Promise<void|string> {
|
|
async handleEvent(@Req() req: SlackOauthReq): Promise<void|string> {
|
|
|
|
|
|
|
|
const { authorizeResult } = req;
|
|
const { authorizeResult } = req;
|
|
|
- if (authorizeResult.botToken == null) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
const client = generateWebClient(authorizeResult.botToken);
|
|
const client = generateWebClient(authorizeResult.botToken);
|
|
|
await postWelcomeMessage(client, req.body.event.channel);
|
|
await postWelcomeMessage(client, req.body.event.channel);
|
|
|
|
|
|