Skip to content

Instantly share code, notes, and snippets.

@Rdx690
Created June 28, 2025 06:22
Show Gist options
  • Select an option

  • Save Rdx690/5afa1f1b92373820ed6292f584dd0ab9 to your computer and use it in GitHub Desktop.

Select an option

Save Rdx690/5afa1f1b92373820ed6292f584dd0ab9 to your computer and use it in GitHub Desktop.
Speed count ping j.s
/**
* πŸ“œ 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