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

Class EatPlugin

eat/eat.ts:454–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452`;
453
454class EatPlugin extends Plugin {
455
456 description: string = `${help_text}`;
457
458 cleanup(): void {
459 assetBufferCache.clear();
460 }
461
462 cmdHandlers: Record<string, (msg: Api.Message) => Promise<void>> = {
463 eat: async (msg, trigger?: Api.Message) => {
464 await fn(msg, trigger);
465 },
466 eat2: async (msg: Api.Message, trigger?: Api.Message) => {
467 await fn(msg, trigger, true);
468 },
469 // Panel Settings Adapter
470 panelAdapter: PanelSettingsAdapter = {
471 id: "eat",
472 title: "吃表情",
473 description: "吃表情配置",

Callers

nothing calls this directly

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected