Skip to content

Commit

Permalink
Master (#58)
Browse files Browse the repository at this point in the history
* feat: add GitHub Actions workflow for CI with Node.js and Jest

* feat: enhance CI workflow and add testing scripts

* feat: update Node.js version to 20.x and enhance Jest configuration

* feat: update ping command responses for clarity and engagement
  • Loading branch information
Neeraj-x0 authored Jan 14, 2025
1 parent 7f388f7 commit 488ed58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/plugins/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ command(
{
pattern: "ping",
fromMe: isPrivate,
desc: "To check ping",
desc: "To check if the bot is awake",
type: "user",
},
async (message, match) => {
const start = new Date().getTime();
await message.sendMessage(message.jid, "```Ping!```");
await message.sendMessage(message.jid, "```Is this thing on?```");
const end = new Date().getTime();
return await message.sendMessage(
message.jid,
"*Pong!*\n ```" + (end - start) + "``` *ms*"
"*Boing!*\n ```" + (end - start) + "``` *milliseconds of my life wasted*"
);
}
);

0 comments on commit 488ed58

Please sign in to comment.