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

Function removeTask

da/da.ts:89–95  ·  view source on GitHub ↗
(chatId: string)

Source from the content-addressed store, hash-verified

87 await db.read();
88
89 db.data.tasks = db.data.tasks.filter(t => t.chatId !== chatId);
90 await db.write();
91};
92
93// 初始化数据库
94initDatabase().catch(console.error);
95
96// 工具函数
97const sleep = (ms: number): Promise<void> =>
98 new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

daFunction · 0.85

Calls 2

writeMethod · 0.80
initDatabaseFunction · 0.70

Tested by

no test coverage detected