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

Function sendStickerList

eat/eat.ts:106–114  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

104});
105
106async function sendStickerList(msg: Api.Message) {
107 const stickerList = Object.keys(config)
108 .sort((a, b) => a.localeCompare(b))
109 .map((key) => `${key} - ${config[key].name}`)
110 .join("\n");
111 await msg.edit({
112 text: `当前表情包:\n${stickerList}`,
113 });
114}
115
116function getRandomEntry(): EntryConfig {
117 const values = Object.values(config);

Callers 1

fnFunction · 0.85

Calls 1

editMethod · 0.45

Tested by

no test coverage detected