MCPcopy Create free account
hub / github.com/Roy3838/Observer / codeFor

Function codeFor

app/src/mcp/useRemoteControl.ts:34–35  ·  view source on GitHub ↗
(channel: RemoteChannel)

Source from the content-addressed store, hash-verified

32
33/** Each channel listens on its own code. */
34const codeFor = (channel: RemoteChannel) =>
35 channel === 'telegram' ? SensorSettings.getTelegramCode() : SensorSettings.getWhitelistCode();
36
37export function useRemoteControl(
38 mcp: Pick<UseMCPReturn, 'send' | 'isRunning'>,

Callers 1

checkFunction · 0.85

Calls 2

getTelegramCodeMethod · 0.80
getWhitelistCodeMethod · 0.80

Tested by

no test coverage detected