MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getWorkingGroupDb

Function getWorkingGroupDb

server/src/slack/client.ts:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29// Lazy-initialized working group database for access checks
30let workingGroupDb: WorkingGroupDatabase | null = null;
31function getWorkingGroupDb(): WorkingGroupDatabase {
32 if (!workingGroupDb) {
33 workingGroupDb = new WorkingGroupDatabase();
34 }
35 return workingGroupDb;
36}
37
38// Use ADDIE_BOT_TOKEN as the primary token (fall back to SLACK_BOT_TOKEN for migration)
39const SLACK_BOT_TOKEN = process.env.ADDIE_BOT_TOKEN || process.env.SLACK_BOT_TOKEN;

Callers 2

checkChannelAccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected