MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / sticker5

Function sticker5

lib/sticker.js:110–120  ·  view source on GitHub ↗
(img, url, packname, author, categories = [''], extra = {})

Source from the content-addressed store, hash-verified

108}
109
110async function sticker5(img, url, packname, author, categories = [''], extra = {}) {
111 const { Sticker } = await import('wa-sticker-formatter')
112 const stickerMetadata = {
113 type: 'default',
114 pack: packname,
115 author,
116 categories,
117 ...extra,
118 }
119 return new Sticker(img ? img : url, stickerMetadata).toBuffer()
120}
121
122/**
123 * Convert using fluent-ffmpeg

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected