You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
708 B
JavaScript

const Command = require("../../Structure/Command.js");
4 years ago
module.exports = class extends Command {
constructor(client) {
super(client, {
name: "ping",
description: "Return the bot ping.",
category: "Bot",
4 years ago
enabled: true,
aliases: ["latency"],
4 years ago
cooldown: 3,
dmOnly: false,
});
}
async run(message, args) {
message.chat.sendMessage('Fetching ping...').then(m => {
m.delete();
message.chat.sendMessage(`My ping is currently at ${(m.timestamp - message.timestamp) / 1000}ms\nI use ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}mb of RAM`)
})
4 years ago
}
}