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

Function scheduleTimer

paolu/paolu.ts:32–39  ·  view source on GitHub ↗
(fn: () => void, ms: number)

Source from the content-addressed store, hash-verified

30 fn();
31 }, ms);
32 pendingTimers.add(t);
33 return t;
34}
35
36class PaoluPlugin extends Plugin {
37
38 description: string = `群组一键跑路插件 - 删除消息并禁言所有成员\n\n${help_text}`;
39
40 cmdHandlers: Record<string, (msg: Api.Message) => Promise<void>> = {
41 paolu: this.handlePaolu.bind(this),
42 };

Callers 1

handlePaoluMethod · 0.70

Calls 3

fnFunction · 0.85
deleteMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected