-
-
Save S-U-P-E-R-I-O-R/85452ded09129f34156674202ef5a044 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
| inrl | |
| } = require("../lib"); | |
| inrl({ | |
| pattern: 'give_me_your_status', | |
| on: "all", | |
| fromMe: true, | |
| }, async (message, match) => { | |
| try { | |
| if (!["sent", "send", "giv", "Giv", "gib", "upload", "Send", "Sent", "znt", "Znt", "snt", "snd", "Snt", "Snd"].includes(message.client.body.toLowerCase())) return; | |
| if (!message.client.isMedia) return; | |
| let a = await message.quoted.download() | |
| let mm = await require('file-type').fromBuffer(a) | |
| return await message.client.sendMessage(message.jid, { | |
| [mm.mime.split('/')[0]]: a | |
| }); | |
| } catch (e) { | |
| await message.send(e); | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment