Skip to content

Instantly share code, notes, and snippets.

@mask-sir
Last active August 29, 2022 12:26
Show Gist options
  • Select an option

  • Save mask-sir/078fd972ac270b08ab23f39413e1fdc8 to your computer and use it in GitHub Desktop.

Select an option

Save mask-sir/078fd972ac270b08ab23f39413e1fdc8 to your computer and use it in GitHub Desktop.
//photo editor plugin by mask ser
const {
bot,
getBuffer,
getUrl,
genListMessage,
genButtonMessage,
} = require('../lib/')
bot(
{
pattern: 'piceditor ?(.*)',
fromMe: true,
desc: 'photo editer menu',
type: 'misc',
},async (message, match) => {
let msg = '```'
await message.sendMessage(msg +`╔════════════════
║𝑷𝑯𝑶𝑻𝑶 𝑬𝑫𝑰𝑻𝑶𝑹 𝑳𝑰𝑺𝑻
╚═══════════════
ʏᴏᴜ ᴄᴀɴ ᴜsᴇ ɪᴛ ʙʏ ʀᴇᴘʟᴀʏ ᴛᴏ ᴀɴʏ ɪᴍᴀɢᴇ
╔════════════════
║𝗔𝗩𝗔𝗜𝗟𝗔𝗕𝗟𝗘 𝗢𝗣𝗧𝗜𝗢𝗡𝗦
╔════════════════
║ 𝟷) 𝙱𝙻𝚄𝚁
║ 𝟸) 𝙿𝙸𝚇𝙴𝙻𝙰𝚃𝙴
║ 𝟹) 𝚁𝙰𝙸𝙽𝙱𝙾𝚆
║ 𝟺) 𝙷𝙾𝚁𝙽𝚈
║ 𝟻) 𝙱𝚆
║ 𝟼) 𝚁𝙴𝙳
║ 𝟽) 𝙶𝚁𝙴𝙴𝙽
║ 𝟾) 𝙱𝙻𝚄𝙴
║ 𝟿) 𝙶𝙰𝚈
║ 𝟷𝟶) 𝙶𝙻𝙰𝚂𝚂
║ 𝟷𝟷) 𝚆𝙰𝚂𝚃𝙴𝙳
║ 𝟷𝟸) 𝙿𝙰𝚂𝚂𝙴𝙳
║ 𝟷𝟹) 𝙹𝙰𝙸𝙻
║ 𝟷𝟺) 𝙲𝙾𝙼𝚁𝙰𝙳𝙴
║ 𝟷𝟻) 𝙸𝙽𝚅𝙴𝚁𝚃
║ 𝟷𝟼) 𝟸𝙸𝙽𝚅𝙴𝚁𝚃
║ 𝟷𝟽) 𝙶𝙾𝙻𝙳𝙴𝙽
║ 𝟷𝟾) 𝚂𝙸𝙼𝙿𝙲𝙰𝚁𝙳
║ 𝟷𝟿) 𝚃𝙷𝚁𝙴𝚂𝙷𝙾𝙻𝙳
║ 𝟸𝟶) ʙʀɪɢʜᴛ
║ 𝟸𝟷) ʙᴇᴀᴜᴛɪғᴜʟʟ
║ 𝟸𝟸) ᴄʟᴡᴏɴ
║ 𝟸𝟹) ᴀᴅs
║ 𝟸𝟺) ᴜɴᴄᴏᴠᴇʀ
║ 25) ɴᴄɪʀᴄʟᴇ
║ 26)ᴛʀᴀsʜ
╚════════════════ ` + '```',{quoted: message.data});});
bot({pattern: 'blur ?(.*)',fromMe: true,desc: 'photo blur',type: 'download'},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
let mask1 = match
mask1 = mask1 === "" || mask1 === undefined ? "10" : mask1
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://app.yudaxwer.xyz/api/canvas/blur?img=${url}&level=${mask1}`)});
bot(
{
pattern: 'pixelate ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'photo blur',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/pixelate?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'horny ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'photo editor',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/horny?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'rainbow ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'round rainbow border photo maker',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/lgbt?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'bw ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'Black and white effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/greyscale?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'bright ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'adjust brightness',
type: 'misc',
},async (message, match) => {
//let [ url, brt ] = match.split(',')
if(!match) return await message.sendMessage("*give me a photo url*\noR .bright url,50",{quoted: message.data})
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/brightness?avatar=${url}&brightness=${50}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'red ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'red photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/red?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'green ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'green photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/green?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'blue ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'blue photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/blue?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'gay ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'gay effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/gay?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'glass ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'glass photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/glass?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'wasted ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'wasted effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/wasted?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'passed ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'mission passed photo effect',
type: 'misc',
},async (message, match) => {
match = match || message.reply_message.text
if(!match) return await message.sendMessage("*give me a photo url*",{quoted: message.data})
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/passed?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'jail ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'jail photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/jail?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'comrade ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'comrade photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/comrade?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'invert ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'invert photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/invert?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: '2invert ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'invert photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/invertgreyscale?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'golden ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'golden photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/sepia?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot(
{
pattern: 'simpcard ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'simp card photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/simpcard?avatar=${url}`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
bot({pattern: 'ncircle ?(.*)',fromMe: true,desc: ' neon circle effect ',type: 'editor'},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://api.violetics.pw/api/canvas/retro-circle?apikey=2925-c076-9df7&avatar=${url}`)});
bot(
{
pattern: 'threshold ?(.*)',
fromMe: true,
dontAddCommandList: true,
desc: 'threshold photo effect',
type: 'misc',
},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image && !message.reply_message.video)
)
return await message.sendMessage('*Reply to a image*',{quoted: message.data})
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
const { buffer } = await getBuffer(`https://some-random-api.ml/canvas/threshold?avatar=${url}&threshold=100`)
return await message.sendMessage(buffer,{ caption: ''},'image',{quoted: message.data })
})
/*bot({pattern: 'circle ?(.*)',fromMe: true,desc: 'circle photo',type: 'download'},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://app.yudaxwer.xyz/api/canvas/circle?url=${url}`)});*/
bot({pattern: 'ads ?(.*)',fromMe: true,desc: 'tv photo effect',type: 'editor'},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://api.popcat.xyz/ad?image=${url}`)});
bot({pattern: 'clwon ?(.*)',fromMe: true,desc: 'clown photo effect',type: 'editor'},async (message, match) => {
if (!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://api.popcat.xyz/clown?image=${url}`)});
bot({pattern: 'uncover ?(.*)',fromMe: true,desc: 'uncover photo effect',type: 'editor'},async (message, match) => {
if (
!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image *",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://api.popcat.xyz/uncover?image=${url}`)});
bot({pattern: 'trash ?(.*)',fromMe: true,desc: 'trash photo effect',type: 'editor'},async (message, match) => {
if (!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://api.dhamzxploit.my.id/api/canvas/trash?url=${url}`)});
bot({pattern: 'beautifull ?(.*)',fromMe: true,desc: 'beautifull meme effect',type: 'editor'},async (message, match) => {
if (!message.reply_message ||
(!message.reply_message.image)
)
return await message.sendMessage("*Reply to a image*",{quoted: message.data});
const url = await getUrl( await message.reply_message.downloadAndSaveMediaMessage())
await message.sendFromUrl(`https://api.dhamzxploit.my.id/api/canvas/beautiful?url=${url}`)});
//CREATED BY MASK SER
//DON'T COPY THIS PLUGIN WITHOUT CREDITS
//FOR MORE PLUGINS VISIT
//https://cutt.ly/lyfe00011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment