alpha
Login
or
Join now
dunkirk.sh
/
smokie
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
bug: fix lint error
author
Kieran Klukas
date
1 year ago
(Apr 1, 2025, 11:41 PM -0400)
commit
6ab89a63
6ab89a63403be623f355761bef3c5c38d0b4371a
parent
af3a0793
af3a0793941417de07e35ee9c15290e78fe8cfe7
+3
-3
2 changed files
Expand all
Collapse all
Unified
Split
src
index.ts
libs
template.ts
+2
-2
src/index.ts
Reviewed
···
26
26
27
27
const slackApp = new SlackApp({
28
28
env: {
29
29
-
SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN!,
30
30
-
SLACK_SIGNING_SECRET: process.env.SLACK_SIGNING_SECRET!,
29
29
+
SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN as string,
30
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
Reviewed
···
52
52
if (arr.length === 0) {
53
53
throw new Error("Cannot get random choice from empty array");
54
54
}
55
55
-
return arr[Math.floor(Math.random() * arr.length)]!;
55
55
+
return arr[Math.floor(Math.random() * arr.length)] as T;
56
56
}