Skip to content

Instantly share code, notes, and snippets.

@mrlinux007
Created September 9, 2022 02:53
Show Gist options
  • Select an option

  • Save mrlinux007/34cb77cf253ddc4f919192196456706b to your computer and use it in GitHub Desktop.

Select an option

Save mrlinux007/34cb77cf253ddc4f919192196456706b to your computer and use it in GitHub Desktop.
const { addExif, Function, cropsticker } = require('../lib/')
Function (
{
pattern: '1cs ?(.*)',
fromMe: true,
desc: 'Random anime quote',
type: 'info',
},
async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.video && !message.reply_message.image)
)
return await message.send('*Reply to image/video*')
return await message.send(
await cropsticker(
'str',
await message.reply_message.downloadAndSaveMediaMessage('sticker'),
message.reply_message.image
? 1
: //: message.reply_message.seconds < 10 ?
2
//: 3
),
{ isAnimated: !!message.reply_message.video, quoted: message.quoted },
'sticker'
)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment