/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ ⭐PROJECT NAME: SUBZERO WHATSAPP MD BOT ⭐DEVELOPER MR FRANK ⭐ MY TEAM XERO CODERS ⭐ OUR WEBSITE https://github.com/ZwSyntax/SUBZERO-MD © TRY DECRYPTING IF YOU CAN⚠ ╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ const config = require('../config') let fs = require('fs') const os = require("os") const { cmd, commands } = require('../command') const { getBuffer, getGroupAdmins, getRandom, h2k, isUrl, Json, runtime, sleep, fetchJson} = require('../lib/functions') cmd({ pattern: "ping2", react: "🤖", alias: ["speed"], desc: "Check bot\'s ping", category: "main", use: '.ping2', filename: __filename }, async(conn, mek, m,{from, l, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { try{ var inital = new Date().getTime(); let ping = await conn.sendMessage(from , { text: '*_Zinda huu..._*' }, { quoted: mek } ) var final = new Date().getTime(); await conn.sendMessage(from, { delete: ping.key }) return await conn.sendMessage(from , { text: '*🔥Pong*\n *' + (final - inital) + ' ms* ' }, { quoted: mek } ) } catch (e) { reply('*Error !!*') l(e) } }) cmd({ pattern: "ping", react: "♻️", alias: ["speed"], desc: "Check bot\'s ping", category: "main", use: '.ping', filename: __filename }, async(conn, mek, m,{from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { try{ const startTime = Date.now() const message = await conn.sendMessage(from, { text: '*_🪄Pinging..._*' }) const endTime = Date.now() const ping = endTime - startTime await conn.sendMessage(from, { text: `*♻️ Speed... : ${ping}ms*`}, { quoted: message }) } catch (e) { console.log(e) reply(`${e}`) } })