Spaces:
Paused
Paused
| import moment from 'moment-timezone'; | |
| import fs from 'fs'; | |
| import os from 'os'; | |
| import pkg, { prepareWAMessageMedia } from '@whiskeysockets/baileys'; | |
| const { generateWAMessageFromContent, proto } = pkg; | |
| import config from '../../config.cjs'; | |
| // Get total memory and free memory in bytes | |
| const totalMemoryBytes = os.totalmem(); | |
| const freeMemoryBytes = os.freemem(); | |
| // Define unit conversions | |
| const byteToKB = 1 / 1024; | |
| const byteToMB = byteToKB / 1024; | |
| const byteToGB = byteToMB / 1024; | |
| // Function to format bytes to a human-readable format | |
| function formatBytes(bytes) { | |
| if (bytes >= Math.pow(1024, 3)) { | |
| return (bytes * byteToGB).toFixed(2) + ' GB'; | |
| } else if (bytes >= Math.pow(1024, 2)) { | |
| return (bytes * byteToMB).toFixed(2) + ' MB'; | |
| } else if (bytes >= 1024) { | |
| return (bytes * byteToKB).toFixed(2) + ' KB'; | |
| } else { | |
| return bytes.toFixed(2) + ' bytes'; | |
| } | |
| } | |
| // Bot Process Time | |
| const uptime = process.uptime(); | |
| const day = Math.floor(uptime / (24 * 3600)); // Calculate days | |
| const hours = Math.floor((uptime % (24 * 3600)) / 3600); // Calculate hours | |
| const minutes = Math.floor((uptime % 3600) / 60); // Calculate minutes | |
| const seconds = Math.floor(uptime % 60); // Calculate seconds | |
| // Uptime | |
| const uptimeMessage = `*I am alive now since ${day}d ${hours}h ${minutes}m ${seconds}s*`; | |
| const runMessage = `*โ๏ธ ${day} Day*\n*๐ ${hours} Hour*\n*โฐ ${minutes} Minutes*\n*โฑ๏ธ ${seconds} Seconds*\n`; | |
| const xtime = moment.tz("Asia/Colombo").format("HH:mm:ss"); | |
| const xdate = moment.tz("Asia/Colombo").format("DD/MM/YYYY"); | |
| const time2 = moment().tz("Asia/Colombo").format("HH:mm:ss"); | |
| let pushwish = ""; | |
| if (time2 < "05:00:00") { | |
| pushwish = `Good Morning ๐`; | |
| } else if (time2 < "11:00:00") { | |
| pushwish = `Good Morning ๐`; | |
| } else if (time2 < "15:00:00") { | |
| pushwish = `Good Afternoon ๐ `; | |
| } else if (time2 < "18:00:00") { | |
| pushwish = `Good Evening ๐`; | |
| } else if (time2 < "19:00:00") { | |
| pushwish = `Good Evening ๐`; | |
| } else { | |
| pushwish = `Good Night ๐`; | |
| } | |
| const test = async (m, Matrix) => { | |
| let selectedListId; | |
| const selectedButtonId = m?.message?.templateButtonReplyMessage?.selectedId; | |
| const interactiveResponseMessage = m?.message?.interactiveResponseMessage; | |
| if (interactiveResponseMessage) { | |
| const paramsJson = interactiveResponseMessage.nativeFlowResponseMessage?.paramsJson; | |
| if (paramsJson) { | |
| const params = JSON.parse(paramsJson); | |
| selectedListId = params.id; | |
| // console.log(selectedListId); | |
| } | |
| } | |
| const selectedId = selectedListId || selectedButtonId; | |
| const prefix = config.PREFIX; | |
| const cmd = m.body.startsWith(prefix) ? m.body.slice(prefix.length).split(' ')[0].toLowerCase() : ''; | |
| const mode = config.MODE === 'public' ? 'public' : 'private'; | |
| const pref = config.PREFIX; | |
| const validCommands = ['list', 'help', 'menu']; | |
| if (validCommands.includes(cmd)) { | |
| let msg = generateWAMessageFromContent(m.from, { | |
| viewOnceMessage: { | |
| message: { | |
| "messageContextInfo": { | |
| "deviceListMetadata": {}, | |
| "deviceListMetadataVersion": 2 | |
| }, | |
| interactiveMessage: proto.Message.InteractiveMessage.create({ | |
| body: proto.Message.InteractiveMessage.Body.create({ | |
| text: `โญโโโโโโโโโโโโโโโโท | |
| โ๐ค สแดแด ษดแดแดแด: *แดแดสษชx-แดแด * | |
| โ๐ แด แดส๊ฑษชแดษด: 2.1.0 | |
| โ๐จโ๐ป แดแดกษดแดส : *แดแดสษชx xsษชแด * | |
| โ๐ค ษดแดแดสแดส: 919142294671 | |
| โ๐ก แดสแดแดาแดสแด: *${os.platform()}* | |
| โ๐ก แดแดแด แด: *${mode}* | |
| โ๐ซ แดสแดาษชx: [${pref}] | |
| โฐโโโโโโโโโโโโโโโโท ` | |
| }), | |
| footer: proto.Message.InteractiveMessage.Footer.create({ | |
| text: "ยฉ แดแดแดกแดสแดแด สส แดแดสษชx-แดแด " | |
| }), | |
| header: proto.Message.InteractiveMessage.Header.create({ | |
| ...(await prepareWAMessageMedia({ image : fs.readFileSync('./src/ethix.jpg')}, { upload: Matrix.waUploadToServer})), | |
| title: ``, | |
| gifPlayback: true, | |
| subtitle: "", | |
| hasMediaAttachment: false | |
| }), | |
| nativeFlowMessage: proto.Message.InteractiveMessage.NativeFlowMessage.create({ | |
| buttons: [ | |
| { | |
| "name": "quick_reply", | |
| "buttonParamsJson": JSON.stringify({ | |
| display_text: "ALIVE", | |
| id: `${prefix}alive` | |
| }) | |
| }, | |
| { | |
| "name": "quick_reply", | |
| "buttonParamsJson": JSON.stringify({ | |
| display_text: "PING", | |
| id: `${prefix}ping` | |
| }) | |
| }, | |
| { | |
| "name": "single_select", | |
| "buttonParamsJson": `{"title":"๐๐ป๐ซ๐ธ ๐ ๐ฏ๐ช ๐ฏ๐ธ๐ต๐ด ๐ณ๐ต๐ด๐", | |
| "sections": | |
| [{ | |
| "title":"๐ ๐ฏ๐๐จ๐ช๐ธ-๐ญ๐ท ๐ฅ๐ฟ๐ฟ๐ญ๐ฏ๐ฎ๐", | |
| "highlight_label":"๐คฉ ๐ฅ๐ฟ๐ฟ๐ญ๐ฏ๐ฎ๐", | |
| "rows":[ | |
| { | |
| "header":"", | |
| "title":"๐ฐ แดสส แดแดษดแด", | |
| "description":"๐จ๐ฏ๐๐จ๐ช๐ธ-๐ญ๐ท ๐ฅ๐ฟ๐ฟ๐ญ๐ฏ๐ฎ๐๐จ", | |
| "id":"View All Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"โฌ๏ธ แด แดแดกษดสแดแดแด แดส แดแดษดแด", | |
| "description":"๐๐๐ฎ๐ฏ๐ ๐ซ๐๐ ๐๐ฏ๐๐ด๐๐ฏ๐ซ๐ ๐ ๐ต๐ซ๐ป๐๐ช๐ต๐๐", | |
| "id":"Downloader Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐จโ๐จโ๐งโ๐งษขสแดแดแด แดแดษดแด", | |
| "description":"๐ฅต๐ ๐ต๐ซ๐ป๐๐ช๐ต ๐ป๐ฎ๐ซ๐ป ๐ซ๐ช๐ต ๐ฏ๐ด๐๐ ๐ซ๐๐ฐ๐๐ซ๐ฉ๐๐ต ๐ ๐ฏ๐ช ๐๐ช๐ฏ๐๐ธ๐ฅต", | |
| "id":"Group Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐จโ๐ง แดแดแดส แดแดษดแด", | |
| "description":"๐ ๐๐ฎ๐ฏ๐ ๐ณ๐ต ๐ป๐ฏ๐ฏ๐ ๐ณ๐ต๐ด๐", | |
| "id":"Tool Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐ฟ แดแดษชษด แดแดษดแด", | |
| "description":"๐ช ๐ฉ๐ฏ๐ป ๐ณ๐ซ๐ฐ๐ด ๐๐ฏ๐ณ๐ณ๐ซ๐ด๐๐๐ณ", | |
| "id":"Main Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐จโ๐ป แดแดกษดแดส แดแดษดแด", | |
| "description":"๐๐ ๐ต๐ซ๐ป๐๐ช๐ต ๐ป๐ฎ๐ซ๐ป ๐ซ๐ช๐ต ๐ฏ๐ด๐๐ ๐ ๐ฏ๐ช ๐ณ๐ ๐ฎ๐ซ๐ด๐๐๐ฏ๐ณ๐ต ๐ฏ๐๐ด๐ต๐ช๐จโ๐ผ", | |
| "id":"Owner Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"โจ แดษช แดแดษดแด", | |
| "description":"๐ซ ๐๐ฎ๐ฏ๐ ๐ณ๐ต ๐ซ๐ฐ ๐ณ๐ต๐ด๐ ๐", | |
| "id":"Ai Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐sแดแดสแดส แดแดษดแด๐", | |
| "description":"โ๏ธ ๐๐ฎ๐ฏ๐ ๐ณ๐ต ๐๐ต๐ซ๐ช๐๐ฎ ๐ณ๐ต๐ด๐", | |
| "id":"Search Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐งโโ๏ธ sแดแดสแด แดแดษดแด", | |
| "description":"๐จโ๐ผ ๐๐ฎ๐ฏ๐ ๐ณ๐ต ๐๐ป๐ซ๐๐ ๐ณ๐ต๐ด๐๐ช", | |
| "id":"Stalk Menu" | |
| }, | |
| { | |
| "header":"", | |
| "title":"๐ฅ ๐๐๐๐๐๐๐๐๐ ๐๐๐๐", | |
| "description":"๐ท ๐๐ฎ๐ฏ๐ ๐ณ๐ต ๐๐ฏ๐ด๐๐ต๐ช๐ป๐ต๐ช ๐ณ๐ต๐ด๐", | |
| "id":"Converter Menu" | |
| } | |
| ]} | |
| ]}` | |
| }, | |
| ], | |
| }), | |
| contextInfo: { | |
| quotedMessage: m.message, | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }), | |
| }, | |
| }, | |
| }, {}); | |
| await Matrix.relayMessage(msg.key.remoteJid, msg.message, { | |
| messageId: msg.key.id | |
| }); | |
| } | |
| if (selectedId == "View All Menu") { | |
| const str = `hey ${m.pushName} ${pushwish} | |
| โญโโโโโโโโโโโโโโโโท | |
| โ๐ค สแดแด ษดแดแดแด: *แดแดสษชx-แดแด * | |
| โ๐ แด แดส๊ฑษชแดษด: 2.0.3 | |
| โ๐จโ๐ป แดแดกษดแดส : *แดแดสษชx xsษชแด * | |
| โ๐ค ษดแดแดสแดส: 919142294671 | |
| โ๐ป แดสแดแดาแดสแด: *${os.platform()}* | |
| โ๐ก แดแดแด แด: *${config.MODE}* | |
| โ๐ซ แดสแดาษชx: [${pref}] | |
| โฐโโโโโโโโโโโโโโโโท | |
| โญโโฎ ๐ฒ๐พ๐ฝ๐ ๐ด๐๐๐ด๐ โฏโโฎ | |
| โโฐ ${prefix}๐ฐ๐๐๐ฟ | |
| โโฐ ${prefix}๐ฐ๐๐๐ฟ2 | |
| โโฐ ${prefix}๐ฐ๐๐๐ฟ3 | |
| โโฐ ${prefix}๐ด๐ฑ๐ธ๐ฝ๐ฐ๐๐ | |
| โโฐ ${prefix}๐ณ๐ฑ๐ธ๐ฝ๐ฐ๐๐ | |
| โโฐ ${prefix}๐ด๐ผ๐พ๐น๐ธ๐ผ๐ธ๐ | |
| โโฐ ${prefix}๐ผ๐ฟ3 | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐ฐ๐ธ โฏโโฎ | |
| โโฐ ${prefix}๐ฐ๐ | |
| โโฐ ${prefix}๐ฑ๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐ | |
| โโฐ ${prefix}๐ณ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐๐พ๐พ๐ป โฏโโฎ | |
| โโฐ ${prefix}๐ฒ๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฒ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐ | |
| โโฐ ${prefix}๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐ถ๐๐พ๐๐ฟ โฏโโฎ | |
| โโฐ ${prefix}๐ป๐๐๐๐ถ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐ | |
| โโฐ ${prefix}๐บ๐๐๐ | |
| โโฐ ${prefix}๐ท๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐ป๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐๐ก๐๐ | |
| โโฐ ${prefix}๐ฟ๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ณ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐ณ๐พ๐๐ฝ๐ป๐พ๐ฐ๐ณ โฏโโฎ | |
| โโฐ ${prefix}๐ฐ๐๐ | |
| โโฐ ${prefix}๐ต๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ผ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฟ๐๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐3 | |
| โโฐ ${prefix}๐๐๐๐4 | |
| โโฐ ${prefix}๐ฟ๐๐๐ข | |
| โโฐ ${prefix}๐๐๐๐ | |
| โโฐ ${prefix}๐ ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐3๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐4๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐๐ด๐ฐ๐๐ฒ๐ท โฏโโฎ | |
| โโฐ ${prefix}๐ฟ๐๐๐ข | |
| โโฐ ${prefix}๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฟ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ป๐ข๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐ผ๐ฐ๐ธ๐ฝ โฏโโฎ | |
| โโฐ ${prefix}๐ฟ๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐ | |
| โโฐ ${prefix}๐พ๐ ๐๐๐ | |
| โโฐ ${prefix}๐ผ๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐พ๐๐ฝ๐ด๐ โฏโโฎ | |
| โโฐ ${prefix}๐น๐๐๐ | |
| โโฐ ${prefix}๐ป๐๐๐๐ | |
| โโฐ ${prefix}๐ฑ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐ข๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐ ๐๐ข๐๐พ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| โญโโฎ ๐๐๐ฐ๐ป๐บ โฏโโฎ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| `; | |
| let fgg = { | |
| key: { | |
| fromMe: false, | |
| participant: `0@s.whatsapp.net`, | |
| remoteJid: "status@broadcast" | |
| }, | |
| message: { | |
| contactMessage: { | |
| displayName: `Ethix-MD`, | |
| vcard: `BEGIN:VCARD\nVERSION:3.0\nN:;a,;;;\nFN:'Ethix-MD'\nitem1.TEL;waid=${ | |
| m.sender.split("@")[0] | |
| }:${ | |
| m.sender.split("@")[0] | |
| }\nitem1.X-ABLabel:Ponsel\nEND:VCARD` | |
| } | |
| } | |
| }; | |
| let { key } = await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: fgg | |
| }); | |
| } | |
| if ( selectedId == "Downloader Menu") { | |
| const str = `โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐ณ๐พ๐๐ฝ๐ป๐พ๐ฐ๐ณ โฏโโฎ | |
| โโฐ ${prefix}๐ฐ๐๐ | |
| โโฐ ${prefix}๐ต๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ผ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฟ๐๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐3 | |
| โโฐ ${prefix}๐๐๐๐4 | |
| โโฐ ${prefix}๐ฟ๐๐๐ข | |
| โโฐ ${prefix}๐๐๐๐ | |
| โโฐ ${prefix}๐ ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐3๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐4๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if ( selectedId == "Group Menu") { | |
| const str = `โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐ถ๐๐พ๐๐ฟ โฏโโฎ | |
| โโฐ ${prefix}๐ป๐๐๐๐ถ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐ | |
| โโฐ ${prefix}๐บ๐๐๐ | |
| โโฐ ${prefix}๐ท๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐ป๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐๐ก๐๐ | |
| โโฐ ${prefix}๐ฟ๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ณ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 9999, | |
| isForwarded: true, | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Main Menu") { | |
| const str =`โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐ผ๐ฐ๐ธ๐ฝ โฏโโฎ | |
| โโฐ ${prefix}๐ฟ๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐ | |
| โโฐ ${prefix}๐พ๐ ๐๐๐ | |
| โโฐ ${prefix}๐ผ๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Owner Menu") { | |
| const str = `โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐พ๐๐ฝ๐ด๐ โฏโโฎ | |
| โโฐ ${prefix}๐น๐๐๐ | |
| โโฐ ${prefix}๐ป๐๐๐๐ | |
| โโฐ ${prefix}๐ฑ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฑ๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฑ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐ข๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐ ๐๐ข๐๐พ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฐ๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Search Menu") { | |
| const str =`โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐๐ด๐ฐ๐๐ฒ๐ท โฏโโฎ | |
| โโฐ ${prefix}๐ฟ๐๐๐ข | |
| โโฐ ${prefix}๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฟ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ป๐ข๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Stalk Menu") { | |
| const str =`โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐๐๐ฐ๐ป๐บ โฏโโฎ | |
| โโฐ ${prefix}๐ฝ๐๐ ๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Tool Menu") { | |
| const str =`โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐๐พ๐พ๐ป โฏโโฎ | |
| โโฐ ${prefix}๐ฒ๐๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ฒ๐๐๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ธ๐๐๐ | |
| โโฐ ${prefix}๐๐๐ | |
| โโฐ ${prefix}๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Ai Menu") { | |
| const str =`โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐ฐ๐ธ โฏโโฎ | |
| โโฐ ${prefix}๐ฐ๐ | |
| โโฐ ${prefix}๐ฑ๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐ | |
| โโฐ ${prefix}๐ณ๐๐๐๐ | |
| โโฐ ${prefix}๐๐๐๐๐๐ | |
| โโฐ ${prefix}๐ถ๐๐๐๐๐ | |
| โฐโโโโโโโโโโโโโโโโชผ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| if (selectedId == "Converter Menu") { | |
| const str =`โญโโโโฎ *s แด ส แด แด ส* โฏ | |
| โโฅ ๐๐พ๐๐ฐ๐ป ๐๐ฐ๐ผ: ${formatBytes(totalMemoryBytes)} | |
| โโฅ ๐ต๐๐ด๐ด ๐๐ฐ๐ผ: ${formatBytes(freeMemoryBytes)} | |
| โฐโโโโโโโโโโโโโโโโฅ | |
| โญโโฎ ๐ฒ๐พ๐ฝ๐ ๐ด๐๐๐ด๐ โฏโโฎ | |
| โโฐ ${prefix}๐ฐ๐๐๐ฟ | |
| โโฐ ${prefix}๐ฐ๐๐๐ฟ2 | |
| โโฐ ${prefix}๐ฐ๐๐๐ฟ3 | |
| โโฐ ${prefix}๐ด๐ฑ๐ธ๐ฝ๐ฐ๐๐ | |
| โโฐ ${prefix}๐ณ๐ฑ๐ธ๐ฝ๐ฐ๐๐ | |
| โโฐ ${prefix}๐ด๐ผ๐พ๐น๐ธ๐ผ๐ธ๐ | |
| โโฐ ${prefix}๐ผ๐ฟ3 | |
| โฐโโโโโโโโโโโโโโโโชผ | |
| ` | |
| await Matrix.sendMessage(m.from, { | |
| image: fs.readFileSync('./src/ethix.jpg'), | |
| caption: str, | |
| contextInfo: { | |
| mentionedJid: [m.sender], | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363249960769123@newsletter', | |
| newsletterName: "Ethix-MD", | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { | |
| quoted: m | |
| }); | |
| } | |
| }; | |
| export default test; | |