Last active
June 28, 2025 06:19
-
-
Save Rdx690/4025e293beb51f49200774bf8fd39f62 to your computer and use it in GitHub Desktop.
Speed test
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
| // 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