discord-ping-uptime

1.0.0 • Public • Published

Discord-Ping-Uptime

Discord-Ping-Uptime is a lightweight package that can be used to get the Ping and Uptime of your discord bot!

It is easy to use and great for both simple and advanced bots.

It sends the ping message in an good looking embed who's color depends on how good the ping is!

Output

GreenEmbed YellowEmbed RedEmbed

How to use it?

Install discord-ping-uptime by running the following in your terminal.

npm i discord-ping-uptime

Define a constant in the top of your code for the ping command.

const {givePing} = require("discord-ping-uptime");

Then call the function givePing.

givePing(<MESSAGE>, <CLIENT>, <DISCORD>);

Example code for the ping command.

const {givePing} = require("discord-ping-uptime");
module.exports = {
    name: 'ping',
    description:"This is a ping command!",
    execute(message, args, client, Discord){
      givePing(message, client, Discord);
  }     
}

Features

•Gives both Ping and the uptime of the bot.

•Easy to install and use.

•The Ping and Uptime are sent in an embed with color corresponding to the ping.


If you like this package, thank you so much, I am very happy that this package was useful to you.

Package Sidebar

Install

npm i discord-ping-uptime

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.56 kB

Total Files

3

Last publish

Collaborators

  • urprobokeh