Last active
December 9, 2023 13:01
-
-
Save I-NRL/00837c55849f5d2a53ca9e8d7d83625c to your computer and use it in GitHub Desktop.
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 { | |
Image | |
} = require("node-webpmux"); | |
const { | |
inrl, | |
getVar | |
} = require('../lib') | |
inrl({ | |
pattern: 'exif ?(.*)', | |
desc: 'to convert image/sticker/video/audio to url', | |
sucReact: "⛰️", | |
category: ["all"], | |
type: "get" | |
}, async (message, client, match) => { | |
if (!message.quoted || !message.quoted.stickerMessage) return message.reply('reply to sticker'); | |
let img = new Image(); | |
await img.load(await message.quoted.download()); | |
const exif = JSON.parse(img.exif.slice(22).toString()); | |
return await message.reply(exif); | |
}); | |
//some encode&decoders | |
inrl({ | |
pattern: 'rvtext ?(.*)', | |
desc: 'to convert image/sticker/video/audio to url', | |
sucReact: "⛰️", | |
category: ["all"], | |
type: "converter" | |
}, async (m, client, match) => { | |
if (!match) return await m.reply("_Give me a text to reverse_") | |
return await m.reply(match.split("").reverse().join("")) | |
}); | |
inrl({ | |
pattern: 'hex ?(.*)', | |
desc: 'to convert image/sticker/video/audio to url', | |
sucReact: "⛰️", | |
category: ["all"], | |
type: "converter" | |
}, async (m, client, match) => { | |
if (!match) return await m.reply("_Give me a text to convert_") | |
return await m.reply(Buffer.from(match, 'utf8').toString('hex')); | |
}); | |
inrl({ | |
pattern: 'dhex ?(.*)', | |
desc: 'to convert image/sticker/video/audio to url', | |
sucReact: "⛰️", | |
category: ["all"], | |
type: "converter" | |
}, async (m, client, match) => { | |
if (!match) return await m.reply("_Give me a text to convert_") | |
return await m.reply(Buffer.from(match, 'hex').toString()); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment