Skip to content

Instantly share code, notes, and snippets.

@spark-shadow
Last active March 16, 2024 17:07
Show Gist options
  • Save spark-shadow/37dc98cfbcbb45fb790deda1194e20d0 to your computer and use it in GitHub Desktop.
Save spark-shadow/37dc98cfbcbb45fb790deda1194e20d0 to your computer and use it in GitHub Desktop.
TexT to webp maker
const Shadow = require('../Utilis/events')
const { ePhotoDownload, getJson, getBuffer } = require('../Utilis/download')
const { MessageType, Mimetype } = require('@adiwajshing/baileys')
const {sticker} = require('../Utilis/fFmpeg')
const need = "*give me text*"
//ttp maker by Shadow
Shadow.addCommand({ pattern: 'ttp list ?(.*)', fromMe: true, desc: "Text to webp maker", }, async (message, match) => {
return await message.sendMessage(`╭────────────────╮
❏ TTP MAKER ❏
╰────────────────╯
ᴄᴏᴍᴍᴀɴᴅs
╭────────────────
│ ➣ ɢᴛᴛᴘ
│ ➣ ᴄᴏᴛᴛᴘ
│ ➣ ʀᴄᴛᴛᴘ
│ ➣ ᴘᴛᴛᴘ
│ ➣ ᴅᴛᴛᴘ
│ ➣ ɴᴛᴛᴘ
│ ➣ ғᴛᴛᴘ
│ ➣ sᴛᴛᴘ
╰────────────────
ᴇxᴀᴍᴘʟᴇ
╭───────────────╮
❏ .ɢᴛᴛᴘ ᴛᴇxᴛ
╰───────────────╯`,{quoted : {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "status@broadcast"
},
message: {
"extendedTextMessage": {
"text": "ᴛᴛᴘ ᴍᴀᴋᴇʀ"
}
}
}}) //Coded by Shadow...
})
Shadow.addCommand({ pattern: 'gttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/galaxy-text-effect-116.html"
const {status, url} = await ePhotoDownload(effect_url, match)
if(!status)return
let buffer = await sticker ('webp', url, 1)
return await message.sendMessage(buffer, {}, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Shadow.addCommand({ pattern: 'cottp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/boom-text-comic-style-text-effect-675.html"
const {status, url} = await ePhotoDownload(effect_url, match,"f36541e4-27fa-440c-8314-3b3c1b6feddc")
if(!status)return
let buffer = await sticker ('webp', url, 1)
return await message.sendMessage(buffer, {}, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
//Random 1 key
const cat = ["86e55647-2fc7-4b20-ae13-7dfc740af209","fb6983d2-3bc1-46b5-bb61-00cff1bffbf7","33be5625-d82c-4bd5-97ed-57324fd90a70","50eb6949-e5a5-4feb-95ce-8ca749159ee7"]
//Random 1 code
Shadow.addCommand({ pattern: 'rcttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/handwritten-text-on-foggy-glass-online-680.html"
const {status, url} = await ePhotoDownload(effect_url,match,cat[Math.floor(5*Math.random())])
if(!status)return
let buffer = await sticker ('webp', url, 1)
return await message.sendMessage(buffer, {}, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Shadow.addCommand({ pattern: 'pttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/make-team-logo-online-free-432.html"
const {status, url} = await ePhotoDownload(effect_url, match,"0e5xhjwqa")
if(!status)return
let buffer = await sticker ('webp', url, 1)
return await message.sendMessage(buffer, {}, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Shadow.addCommand({ pattern: 'dttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/create-3d-gradient-text-effect-online-600.html"
const {status, url} = await ePhotoDownload(effect_url, match)
if(!status)return
let buffer = await sticker ('webp', url, 1)
return await message.sendMessage(buffer, {}, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Shadow.addCommand({ pattern: 'nttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
if (match == '') return await message.sendMessage("Give me text")
const effect_url = "https://en.ephoto360.com/noel-text-effect-online-99.html"
const {status, url} = await ePhotoDownload(effect_url, match)
if(!status)return
let buffer = await sticker ('webp', url, 1)
return await message.sendMessage(buffer, {}, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Shadow.addCommand({ pattern: 'fttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
let { status, result } = await getJson(`https://untitled-1ouyr1rszhaw.runkit.sh/fluffy?text=${match}`)
let buffer = await sticker ('fluffy', result, 1)
return await message.sendMessage(buffer, { Mimetype: Mimetype.webp }, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Shadow.addCommand({ pattern: 'sttp ?(.*)', fromMe: true, desc: "text effect", dontAddCommandList: true }, async (message, match) => {
let { status, result } = await getJson(`https://untitled-1ouyr1rszhaw.runkit.sh/electric?text=${match}`)
let buffer = await sticker ('fluffy', result, 1)
return await message.sendMessage(buffer, { Mimetype: Mimetype.webp }, MessageType.sticker)
}); //Coded by shadow | thanks to lyfe ser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment