This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

bug: fix lint error

+3 -3
+2 -2
src/index.ts
··· 26 26 27 27 const slackApp = new SlackApp({ 28 28 env: { 29 - SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN!, 30 - SLACK_SIGNING_SECRET: process.env.SLACK_SIGNING_SECRET!, 29 + SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN as string, 30 + SLACK_SIGNING_SECRET: process.env.SLACK_SIGNING_SECRET as string, 31 31 SLACK_LOGGING_LEVEL: "INFO", 32 32 }, 33 33 startLazyListenerAfterAck: true,
+1 -1
src/libs/template.ts
··· 52 52 if (arr.length === 0) { 53 53 throw new Error("Cannot get random choice from empty array"); 54 54 } 55 - return arr[Math.floor(Math.random() * arr.length)]!; 55 + return arr[Math.floor(Math.random() * arr.length)] as T; 56 56 }