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

Method printAllTasks

keyword/keyword.ts:426–438  ·  view source on GitHub ↗
(showAll: boolean = false, cid: number = 0)

Source from the content-addressed store, hash-verified

424 if (tasksToShow.length === 0) {
425 return showAll
426 ? "ℹ️ 当前没有任何关键词任务"
427 : "ℹ️ 当前聊天没有任何关键词任务";
428 }
429
430 return tasksToShow.map((task) => task.exportStr(showAll)).join("\n");
431 }
432
433 saveToDB(): void {
434 if (!db) return;
435
436 const stmt = db.prepare(`
437 INSERT OR REPLACE INTO keyword_tasks (
438 task_id, cid, key, msg, include, regexp, exact, case_sensitive,
439 ignore_forward, reply, delete_msg, ban, restrict, delay_delete, source_delay_delete
440 ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
441 `);

Callers 1

keywordFunction · 0.80

Calls 1

exportStrMethod · 0.80

Tested by

no test coverage detected