MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / isNotLinenBot

Function isNotLinenBot

apps/web/services/slack/sync/parseMessage.ts:58–69  ·  view source on GitHub ↗
(message: T)

Source from the content-addressed store, hash-verified

56}
57
58function isNotLinenBot<
59 T extends SlackMessageEvent | ConversationHistoryMessage
60>(message: T) {
61 if (message.message) {
62 if (!message.message.app_id) return true;
63 if (!SlackAppIds.includes(message.message.app_id)) return true;
64 } else {
65 if (!message.app_id) return true;
66 if (!SlackAppIds.includes(message.app_id)) return true;
67 }
68 return false;
69}

Callers 1

filterMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected