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

Function sendSticker

eat/eat.ts:359–370  ·  view source on GitHub ↗
(params: {
  entry: EntryConfig;
  msg: Api.Message;
  trigger?: Api.Message;
  isEat2: boolean;
})

Source from the content-addressed store, hash-verified

357}
358
359async function sendSticker(params: {
360 entry: EntryConfig;
361 msg: Api.Message;
362 trigger?: Api.Message;
363 isEat2: boolean;
364}) {
365 const { entry, msg, trigger, isEat2 } = params;
366 const cmd = msg.message.slice(1).split(" ")[0];
367 await msg.edit({ text: `正在生成 ${entry.name} 表情包···` });
368 await compositeWithEntryConfig({ entry, msg, isEat2, trigger });
369 await msg.delete();
370}
371
372async function ensureConfigLoaded(msg?: Api.Message): Promise<void> {
373 if (!config || Object.keys(config).length === 0) {

Callers 1

fnFunction · 0.85

Calls 3

compositeWithEntryConfigFunction · 0.85
editMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected