MCPcopy
hub / github.com/Linen-dev/linen.dev / discordIntegration

Function discordIntegration

packages/queue/src/tasks/discord-integration.ts:6–15  ·  view source on GitHub ↗
(payload: any, helpers: JobHelpers)

Source from the content-addressed store, hash-verified

4import { Logger } from '../helpers/logger';
5
6export const discordIntegration = async (payload: any, helpers: JobHelpers) => {
7 const logger = new Logger(helpers.logger);
8
9 logger.info(payload);
10
11 const bots = getAllBots();
12 for (const bot of bots) {
13 await cleanUpIntegrations(bot.PRIVATE_TOKEN, bot.botNum, logger);
14 }
15};

Callers

nothing calls this directly

Calls 3

infoMethod · 0.95
getAllBotsFunction · 0.90
cleanUpIntegrationsFunction · 0.90

Tested by

no test coverage detected