shraga 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server/slack/bot.ts +4 -1
package/package.json
CHANGED
package/src/server/slack/bot.ts
CHANGED
|
@@ -28,7 +28,10 @@ const isDownloadable = (f: { url_private?: string; mimetype?: string; size?: num
|
|
|
28
28
|
!!(f.url_private && f.mimetype) &&
|
|
29
29
|
(isSupportedFile(f as any) || (!SUPPORTED_FILE_MIMES.has(f.mimetype) && (f.size ?? 0) <= MAX_DOWNLOAD_SIZE));
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// The "agent channel" gets summon rules beyond @mentions (auto-respond / owned-thread follow-ups).
|
|
32
|
+
// Configure per workspace via SLACK_AGENT_CHANNEL (a channel id); empty means no special channel,
|
|
33
|
+
// so a drop-in bot responds only to @mentions and DMs.
|
|
34
|
+
const AGENT_CHANNEL = process.env.SLACK_AGENT_CHANNEL || '';
|
|
32
35
|
const SLACK_UID = 'slack-bot';
|
|
33
36
|
|
|
34
37
|
type Broadcast = (data: object) => void;
|