Skip to content

Instantly share code, notes, and snippets.

@itzmesuhail143
Forked from tayyabali8677/NameOnCake.js
Created November 24, 2023 01:29
Show Gist options
  • Save itzmesuhail143/f13b1feace333c4f5169b0bcc8b5aa48 to your computer and use it in GitHub Desktop.
Save itzmesuhail143/f13b1feace333c4f5169b0bcc8b5aa48 to your computer and use it in GitHub Desktop.
const { bot, textMaker } = require('../lib')
bot(
{ pattern: 'birthday ?(.*)',
fromMe: true,
desc: 'happy birthday',
type: 'textmaker',
},
async (message, match) => {
if (!match) return await message.sendMessage('Give me text')
const effect_url =
'https://en.ephoto360.com/write-name-on-red-rose-birthday-cake-images-462.html'
const { status, url } = await textMaker(effect_url, match)
if (url) return await message.sendFromUrl(url)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment