(params: {
entry: EntryConfig;
msg: Api.Message;
trigger?: Api.Message;
isEat2: boolean;
})
| 357 | } |
| 358 | |
| 359 | async 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 | |
| 372 | async function ensureConfigLoaded(msg?: Api.Message): Promise<void> { |
| 373 | if (!config || Object.keys(config).length === 0) { |
no test coverage detected