Skip to content

Instantly share code, notes, and snippets.

@lyfe00011
Last active April 20, 2024 04:23
Show Gist options
  • Save lyfe00011/a497eba97dd1e82d8fa43c81cbf0fca8 to your computer and use it in GitHub Desktop.
Save lyfe00011/a497eba97dd1e82d8fa43c81cbf0fca8 to your computer and use it in GitHub Desktop.
ephoto.js
const Asena = require('../Utilis/events')
const { ePhotoDownload, getBuffer } = require('../Utilis/download')
const { MessageType } = require('@adiwajshing/baileys')
//You can copy and make more plugin
//change #effect_url and #command_name only
//also check inout type (#one or #two)
//https://en.ephoto360.com/ use links from HERE
Asena.addCommand({ pattern: 'ephoto ?(.*)', fromMe: true, desc: "Ephoto list", }, async (message, match) => {
return await message.sendMessage('```' + 'sed\nsteel' + '```')
})
//Example for text effect with one input
Asena.addCommand({ pattern: 'sed ?(.*)', fromMe: true, desc: "Sad text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/write-text-on-wet-glass-online-589.html"
const {status, url} = await ePhotoDownload(effect_url, match)
if(!status)return
const { buffer } = await getBuffer(url)
if (buffer !== false) return await message.sendMessage(buffer, {}, MessageType.image)
});
//Example for text effect with two input
Asena.addCommand({ pattern: 'steel ?(.*)', fromMe: true, desc: "Steel text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text\nExample .steel steel;effect")
const [text1, text2] = match.split(';')
if (!text1 || !text2) return await message.sendMessage("Give me text\nExample .steel steel;effect")
const effect_url = "https://en.ephoto360.com/steel-text-effect-66.html"
const {status, url} = await ePhotoDownload(effect_url, match)
if(!status)return
const { buffer } = await getBuffer(url)
if (buffer !== false) return await message.sendMessage(buffer, {}, MessageType.image)
});
@Vichu133
Copy link

Hai

@whiteshadowofficial
Copy link

Hiiii

@Arisha27
Copy link

Love from Ukraine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment