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

Function lifecycleSleep

sticker/sticker.ts:140–147  ·  view source on GitHub ↗
(ms: number, label: string)

Source from the content-addressed store, hash-verified

138 const lifecycle = tryGetCurrentGenerationContext();
139 if (lifecycle) {
140 await lifecycle.delay(ms, { label });
141 return;
142 }
143 await sleep(ms);
144}
145
146class StickerPlugin extends Plugin {
147 description: string = help_text;
148
149 cmdHandlers: Record<string, (msg: Api.Message) => Promise<void>> = {
150 sticker: async (msg: Api.Message) => await this.handleSticker(msg),

Callers 2

handleStickerMethod · 0.85
addToStickerSetMethod · 0.85

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected