-
-
Save ysstarkx/470e7f4666751a3e9fa67536309b158a to your computer and use it in GitHub Desktop.
ephoto.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment