MCPcopy Create free account
hub / github.com/andywang425/BLTH / isEnabled

Method isEnabled

src/modules/BaseModule.ts:72–74  ·  view source on GitHub ↗

* 模块是否启用,默认通过 config.enabled 判断 * * 如果没有 config.enabled 属性,则默认启用(比如默认模块)

()

Source from the content-addressed store, hash-verified

70 * 如果没有 config.enabled 属性,则默认启用(比如默认模块)
71 */
72 public isEnabled(): boolean {
73 return this.config?.enabled ?? true
74 }
75 /**
76 * 如果需要在控制面板上显示模块状态,推荐添加一个 status setter 用来设置模块状态
77 *

Callers 1

_runModuleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected