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

Function scheduleTimer

atadmins/atadmins.ts:44–51  ·  view source on GitHub ↗
(fn: () => void, ms: number)

Source from the content-addressed store, hash-verified

42 pendingTimers.delete(t);
43 fn();
44 }, ms);
45 pendingTimers.add(t);
46 return t;
47}
48
49class AtAdminsPlugin extends Plugin {
50
51 description: string = help_text;
52
53 cmdHandlers: Record<string, (msg: Api.Message, trigger?: Api.Message) => Promise<void>> = {
54 atadmins: async (msg: Api.Message) => {

Callers 1

handleAtAdminsMethod · 0.70

Calls 3

fnFunction · 0.85
deleteMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected