MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / handler

Function handler

plugins/textmaker.js:13–111  ·  view source on GitHub ↗
(sock, message, args)

Source from the content-addressed store, hash-verified

11 description: 'Generate styled text with various effects',
12 usage: '.ephoto <type> <text>',
13 async handler(sock, message, args) {
14 const chatId = message.key.remoteJid;
15 const type = args[0]?.toLowerCase();
16 const text = args.slice(1).join(' ');
17 if (!type || !allTypes.includes(type) || !text) {
18 let menuText = `✨🎨 *EPHOTO TEXT MAKER* 🎨✨
19━━━━━━━━━━━━━━━━━━━
20🖌️ *Create stunning text styles*
21⚡ Fast • Stylish • HD Effects
22
23📌 *Usage*
24👉 *.ephoto <type> <text>*
25📖 Example:
26👉 *.ephoto metallic Hello*
27
28━━━━━━━━━━━━━━━━━━━
29🎭 *AVAILABLE STYLES*
30`;
31 allTypes.forEach((t, i) => {
32 menuText += `🔹 *${i + 1}.* ${t}\n`;
33 });
34 menuText +=
35 `━━━━━━━━━━━━━━━━━━━
36💡 *Tip:* Use short & clear text for best results
37🤖 Powered by *MEGA-MD*`;
38 return await sock.sendMessage(chatId, { text: menuText }, { quoted: message });
39 }
40 try {
41 let url;
42 switch (type) {
43 case 'metallic':
44 url = "https://en.ephoto360.com/impressive-decorative-3d-metal-text-effect-798.html";
45 break;
46 case 'ice':
47 url = "https://en.ephoto360.com/ice-text-effect-online-101.html";
48 break;
49 case 'snow':
50 url = "https://en.ephoto360.com/create-a-snow-3d-text-effect-free-online-621.html";
51 break;
52 case 'impressive':
53 url = "https://en.ephoto360.com/create-3d-colorful-paint-text-effect-online-801.html";
54 break;
55 case 'matrix':
56 url = "https://en.ephoto360.com/matrix-text-effect-154.html";
57 break;
58 case 'light':
59 url = "https://en.ephoto360.com/light-text-effect-futuristic-technology-style-648.html";
60 break;
61 case 'neon':
62 url = "https://en.ephoto360.com/create-colorful-neon-light-text-effects-online-797.html";
63 break;
64 case 'devil':
65 url = "https://en.ephoto360.com/neon-devil-wings-text-effect-online-683.html";
66 break;
67 case 'purple':
68 url = "https://en.ephoto360.com/purple-text-effect-online-100.html";
69 break;
70 case 'thunder':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected