MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCustomTips

Function getCustomTips

src/services/tips/tipRegistry.ts:657–668  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

655 : []
656
657function getCustomTips(): Tip[] {
658 const settings = getInitialSettings()
659 const override = settings.spinnerTipsOverride
660 if (!override?.tips?.length) return []
661
662 return override.tips.map((content, i) => ({
663 id: `custom-tip-${i}`,
664 content: async () => content,
665 cooldownSessions: 0,
666 isRelevant: async () => true,
667 }))
668}
669
670export async function getRelevantTips(context?: TipContext): Promise<Tip[]> {
671 const settings = getInitialSettings()

Callers 1

getRelevantTipsFunction · 0.85

Calls 1

getInitialSettingsFunction · 0.50

Tested by

no test coverage detected