Skip to content

Commit

Permalink
Create Wame.js
Browse files Browse the repository at this point in the history
New plugin
  • Loading branch information
mask-sir committed Feb 2, 2022
1 parent 59d06cb commit a9832ad
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions plugins/Wame.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//Wame by mask se
const Asena = require("../Utilis/events")
const { getBuffer } = require('../Utilis/download');
const url1 = 'https://i.imgur.com/cG7lsKu.jpeg'
//created by mask ser
Asena.addCommand({ pattern: "wame ?(.*)", fromMe: true, desc: 'give the link of the user' },
async (message, match) => {
const options={}
const buff1 = await getBuffer (url1)
options.quoted = {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "status@broadcast"
},
message: {
"imageMessage": {
"jpegThumbnail": buff1.buffer,
"caption": " ♥ MASK SER♥"
}
}
}
match = 'https://wa.me/' + ( message.reply_message.jid || message.mention[0] || match).split('@')[0]
await message.sendMessage(match , options)
})


0 comments on commit a9832ad

Please sign in to comment.