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

Function scheduleTimer

portball/portball.ts:38–45  ·  view source on GitHub ↗
(fn: () => void, ms: number)

Source from the content-addressed store, hash-verified

36 pendingTimers.delete(t);
37 fn();
38 }, ms);
39 pendingTimers.add(t);
40 return t;
41}
42
43class PortballPlugin extends Plugin {
44
45 name = "portball";
46 description = "🔇 临时禁言工具 - 回复消息实现XX秒禁言";
47
48 cmdHandlers = {

Callers 1

autoDeleteMethod · 0.70

Calls 3

fnFunction · 0.85
deleteMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected