MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / botConfig

Function botConfig

dashboard/src/api/v1.ts:292–304  ·  view source on GitHub ↗
(config: OpenConfig)

Source from the content-addressed store, hash-verified

290}
291
292function botConfig(config: OpenConfig): BotConfigRequest {
293 return {
294 id: typeof config.id === 'string' ? config.id : undefined,
295 type: typeof config.type === 'string' ? config.type : '',
296 enabled:
297 typeof config.enable === 'boolean'
298 ? config.enable
299 : typeof config.enabled === 'boolean'
300 ? config.enabled
301 : undefined,
302 config,
303 };
304}
305
306function providerConfig(config: OpenConfig): ProviderConfigRequest {
307 return { config } as ProviderConfigRequest;

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected