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

Function getSlackBot

apps/web/services/slack/api/fetch_all_conversations.ts:251–262  ·  view source on GitHub ↗
(
  botId: string,
  token: string
)

Source from the content-addressed store, hash-verified

249};
250
251export const getSlackBot = async (
252 botId: string,
253 token: string
254): Promise<BotInfo> => {
255 const url = 'https://slack.com/api/bots.info?';
256
257 const response = await request
258 .get(url + 'bot=' + botId)
259 .set('Authorization', 'Bearer ' + token);
260
261 return response.body.ok === true ? response.body.bot : {};
262};

Callers 1

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected