Created
June 28, 2025 06:22
-
-
Save Rdx690/5afa1f1b92373820ed6292f584dd0ab9 to your computer and use it in GitHub Desktop.
Speed count ping j.s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * π Command : Ping Command | |
| * π§βπ» Creator : SOURAJIT-AI | |
| * ποΈ Date : 2025-06-28 | |
| */ | |
| const util = require('util'); | |
| const fs = require('fs-extra'); | |
| const axios = require('axios'); | |
| const { zokou } = require(__dirname + "/../framework/zokou"); | |
| const os = require("os"); | |
| const moment = require("moment-timezone"); | |
| const conf = require(__dirname + "/../set"); | |
| const AUDIO_URL = "https://files.catbox.moe/mfhv0a.mp3"; // π Audio URL | |
| moment.tz.setDefault(`${conf.TZ}`); | |
| const getTimeAndDate = () => { | |
| return { | |
| time: moment().format('HH:mm:ss'), | |
| date: moment().format('DD/MM/YYYY') | |
| }; | |
| }; | |
| // π Ping Command | |
| zokou({ nomCom: "ping", categorie: "General" }, async (dest, zk, commandeOptions) => { | |
| let { ms } = commandeOptions; | |
| const { time, date } = getTimeAndDate(); | |
| const ping = Math.floor(Math.random() * 1000) + 1; | |
| try { | |
| await zk.sendMessage(dest, { | |
| audio: { url: AUDIO_URL }, | |
| mimetype: 'audio/mp4', | |
| ptt: true, | |
| text: `SOURAJIT-AI + LUFFY SPEED : ${ping}ms\nπ§π»`, | |
| contextInfo: { | |
| forwardingScore: 999, | |
| isForwarded: true, | |
| forwardedNewsletterMessageInfo: { | |
| newsletterJid: '120363420096110691@newsletter', | |
| newsletterName: conf.BOTNAME, | |
| serverMessageId: 143 | |
| } | |
| } | |
| }, { quoted: ms }); | |
| await zk.sendMessage(dest, { | |
| text: "```πππ```" | |
| }, { quoted: ms }); | |
| } catch (e) { | |
| console.log("β Ping Command Error: " + e); | |
| repondre("β Error: " + e); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment