Skip to content

Instantly share code, notes, and snippets.

@Rdx690
Forked from KOULIKS94/Ping.js
Last active March 10, 2025 06:22
Show Gist options
  • Select an option

  • Save Rdx690/7cbcbefe81d9704b928bcb916e82bf38 to your computer and use it in GitHub Desktop.

Select an option

Save Rdx690/7cbcbefe81d9704b928bcb916e82bf38 to your computer and use it in GitHub Desktop.
const { performance } = require("perf_hooks");
module.exports = {
name: "pong",
description: "Check bot response time.",
execute: async (client, message) => {
const start = performance.now();
await message.reply("SOURAJIT...");
const end = performance.now();
const ping = Math.round(end - start);
await message.reply(`Pong!SOURAJIT-AI: ${ping}ms`);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment