MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleAdsDisable

Function handleAdsDisable

cli/src/commands/ads.ts:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export const handleAdsDisable = (): {
25 postUserMessage: (messages: ChatMessage[]) => ChatMessage[]
26} => {
27 logger.info('[gravity] Disabling ads')
28 saveSettings({ adsEnabled: false })
29
30 return {
31 postUserMessage: (messages) => [
32 ...messages,
33 getSystemMessage('Ads disabled.'),
34 ],
35 }
36}
37
38export const getAdsEnabled = (): boolean => {
39 if (IS_FREEBUFF) return true

Callers 1

Calls 2

saveSettingsFunction · 0.90
getSystemMessageFunction · 0.90

Tested by

no test coverage detected