forked from mask-sir/whatsapp-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New plugin
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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) | ||
}) | ||
|
||
|