Skip to content

Commit

Permalink
Update ping.js
Browse files Browse the repository at this point in the history
  • Loading branch information
anonphoenix007 authored Jun 8, 2024
1 parent c386862 commit 3252b67
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@

const { fromBuffer, mimeTypes } = require("file-type");
const { command, isPrivate } = require("../lib/");
function sleep(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}

command(
{
Expand All @@ -28,9 +23,9 @@ command(
},
async (message, match) => {
const start = new Date().getTime();
await message.sendMessage(message.jid, { text: "```☬ ʜᴏᴛᴀʀᴏ-ᴍᴅ ☬\n Pinging!```" });
const { key } = await message.sendMessage(message.jid, { text: "```☬ ʜᴏᴛᴀʀᴏ-ᴍᴅ ☬\n Pinging!```" });
const end = new Date().getTime();
return await message.sendMessage(message.jid, { text: "*ʟᴀᴛᴇɴᴄʏ:* " + (end - start) + " *ms*"});
return await message.sendMessage(message.jid, { text: "*ʟᴀᴛᴇɴᴄʏ:* " + (end - start) + " *ms*", edit: key });
}
);

0 comments on commit 3252b67

Please sign in to comment.