MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getDB

Function getDB

acron/acron.ts:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119};
120
121async function getDB() {
122 const db = await JSONFilePreset<AcronDB>(filePath, { seq: "0", tasks: [] });
123 return db;
124}
125
126// 转换辅助:在使用时将字符串转 number,写入时存字符串
127function toInt(value: any): number | undefined {

Callers 3

scheduleTaskFunction · 0.70
bootstrapTasksFunction · 0.70
AcronPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected