Skip to content

Instantly share code, notes, and snippets.

@Rdx690
Last active June 28, 2025 06:19
Show Gist options
  • Select an option

  • Save Rdx690/4025e293beb51f49200774bf8fd39f62 to your computer and use it in GitHub Desktop.

Select an option

Save Rdx690/4025e293beb51f49200774bf8fd39f62 to your computer and use it in GitHub Desktop.
Speed test
// name : Ping
// description : Responds with bot latency check
// author : SOURAJIT-AI
// date : 2025-06-27
const { zokou } = require("../framework/zokou");
zokou({
// Required:
nomCom: "ping",
categorie: "General",
plugin: "ping",
// Optional:
reaction: "📶",
desc: "Check the bot's response speed",
alias: ["p", "speed", "latency"]
}, async (dest, zk, ops) => {
const { repondre } = ops;
const start = Date.now();
await repondre("Pinging...");
const end = Date.now();
const pingTime = end - start;
repondre(`📶 Pong! Response time: *${pingTime}ms*`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment