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

Method addTask

sendat/sendat.ts:252–256  ·  view source on GitHub ↗
(task: SendTask)

Source from the content-addressed store, hash-verified

250 await this.saveToDB();
251 this.registerTask(task);
252 }
253
254 // 删除任务
255 async removeTask(taskId: number): Promise<boolean> {
256 const index = this.tasks.findIndex(task => task.task_id === taskId);
257 if (index !== -1) {
258 this.removeTaskFromCron(taskId);
259 this.tasks.splice(index, 1);

Callers 1

handleAddTaskMethod · 0.80

Calls 2

saveToDBMethod · 0.95
registerTaskMethod · 0.95

Tested by

no test coverage detected