Skip to content

Commit

Permalink
Update sticker-meme.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ImYanXiao authored Nov 19, 2024
1 parent 7c5f002 commit fdc25ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/sticker-meme.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ let handler = async (m, { conn, text, usedPrefix, command }) => {
if (!atas && bawah) {
atas = ' '
}

let meme = `https://api.memegen.link/images/custom/${encodeURIComponent(atas ? atas : '')}/${encodeURIComponent(bawah ? bawah : '')}.png?background=${url}`
let buff = await(await fetch(meme)).buffer()

let stiker = await sticker(false, meme, global.packname, global.author)
let stiker = await sticker(meme, false, global.packname, global.author)
if (stiker) await conn.sendFile(m.chat, stiker, '', author, m, '', { asSticker: 1 })
}

Expand Down

0 comments on commit fdc25ab

Please sign in to comment.