(sock: any, message: any, args: any)
| 14 | usage: '.ephoto <type> <text>', |
| 15 | |
| 16 | async handler(sock: any, message: any, args: any) { |
| 17 | const chatId = message.key.remoteJid; |
| 18 | const type = args[0]?.toLowerCase(); |
| 19 | const text = args.slice(1).join(' '); |
| 20 | |
| 21 | if (!type || !allTypes.includes(type) || !text) { |
| 22 | let menuText = |
| 23 | `✨🎨 *EPHOTO TEXT MAKER* 🎨✨ |
| 24 | ━━━━━━━━━━━━━━━━━━━ |
| 25 | 🖌️ *Create stunning text styles* |
| 26 | ⚡ Fast • Stylish • HD Effects |
| 27 | |
| 28 | 📌 *Usage* |
| 29 | 👉 *.ephoto <type> <text>* |
| 30 | 📖 Example: |
| 31 | 👉 *.ephoto metallic Hello* |
| 32 | |
| 33 | ━━━━━━━━━━━━━━━━━━━ |
| 34 | 🎭 *AVAILABLE STYLES* |
| 35 | `; |
| 36 | |
| 37 | allTypes.forEach((t, i) => { |
| 38 | menuText += `🔹 *${i + 1}.* ${t}\n`; |
| 39 | }); |
| 40 | |
| 41 | menuText += |
| 42 | `━━━━━━━━━━━━━━━━━━━ |
| 43 | 💡 *Tip:* Use short & clear text for best results |
| 44 | 🤖 Powered by *MEGA-MD*`; |
| 45 | |
| 46 | return await sock.sendMessage( |
| 47 | chatId, |
| 48 | { text: menuText }, |
| 49 | { quoted: message } |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | try { |
| 54 | let url; |
| 55 | switch (type) { |
| 56 | case 'metallic': url = "https://en.ephoto360.com/impressive-decorative-3d-metal-text-effect-798.html"; break; |
| 57 | case 'ice': url = "https://en.ephoto360.com/ice-text-effect-online-101.html"; break; |
| 58 | case 'snow': url = "https://en.ephoto360.com/create-a-snow-3d-text-effect-free-online-621.html"; break; |
| 59 | case 'impressive': url = "https://en.ephoto360.com/create-3d-colorful-paint-text-effect-online-801.html"; break; |
| 60 | case 'matrix': url = "https://en.ephoto360.com/matrix-text-effect-154.html"; break; |
| 61 | case 'light': url = "https://en.ephoto360.com/light-text-effect-futuristic-technology-style-648.html"; break; |
| 62 | case 'neon': url = "https://en.ephoto360.com/create-colorful-neon-light-text-effects-online-797.html"; break; |
| 63 | case 'devil': url = "https://en.ephoto360.com/neon-devil-wings-text-effect-online-683.html"; break; |
| 64 | case 'purple': url = "https://en.ephoto360.com/purple-text-effect-online-100.html"; break; |
| 65 | case 'thunder': url = "https://en.ephoto360.com/thunder-text-effect-online-97.html"; break; |
| 66 | case 'leaves': url = "https://en.ephoto360.com/green-brush-text-effect-typography-maker-online-153.html"; break; |
| 67 | case '1917': url = "https://en.ephoto360.com/1917-style-text-effect-523.html"; break; |
| 68 | case 'arena': url = "https://en.ephoto360.com/create-cover-arena-of-valor-by-mastering-360.html"; break; |
| 69 | case 'hacker': url = "https://en.ephoto360.com/create-anonymous-hacker-avatars-cyan-neon-677.html"; break; |
| 70 | case 'sand': url = "https://en.ephoto360.com/write-names-and-messages-on-the-sand-online-582.html"; break; |
| 71 | case 'blackpink': url = "https://en.ephoto360.com/create-a-blackpink-style-logo-with-members-signatures-810.html"; break; |
| 72 | case 'glitch': url = "https://en.ephoto360.com/create-digital-glitch-text-effects-online-767.html"; break; |
| 73 | case 'fire': url = "https://en.ephoto360.com/flame-lettering-effect-372.html"; break; |
nothing calls this directly
no outgoing calls
no test coverage detected