This commit is contained in:
10
commands/estimate.js
Normal file
10
commands/estimate.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
exports.name = "estimate";
|
||||||
|
exports.description =
|
||||||
|
":money_with_wings: Give an estimated price of certain items in cv.";
|
||||||
|
exports.usage = "<<estimate [explanation of what you want to price]";
|
||||||
|
exports.example =
|
||||||
|
"<<estimate 1600 monk dps\n<<estimate 1100 thp\n<<estimate 2400 app builder staff\n(do not include armor type or any superflous data)";
|
||||||
|
exports.hidden = true;
|
||||||
|
exports.run = async (client, message, args) => {
|
||||||
|
message.channel.send(":sob: im still wokring on this one...");
|
||||||
|
};
|
27
commands/ping.js
Normal file
27
commands/ping.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
function format(seconds) {
|
||||||
|
function pad(s) {
|
||||||
|
return (s < 10 ? "0" : "") + s;
|
||||||
|
}
|
||||||
|
var hours = Math.floor(seconds / (60 * 60));
|
||||||
|
var minutes = Math.floor((seconds % (60 * 60)) / 60);
|
||||||
|
var seconds = Math.floor(seconds % 60);
|
||||||
|
|
||||||
|
return pad(hours) + ":" + pad(minutes) + ":" + pad(seconds);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.name = "ping";
|
||||||
|
exports.description = ":ping_pong: View service statistics.";
|
||||||
|
exports.usage = "<<ping";
|
||||||
|
exports.example = "<<ping";
|
||||||
|
exports.hidden = true;
|
||||||
|
exports.run = async (client, message, args) => {
|
||||||
|
message.channel.send("Fetching data...").then((m) => {
|
||||||
|
m.edit(
|
||||||
|
`🏓 Latency is **${
|
||||||
|
m.createdTimestamp - message.createdTimestamp
|
||||||
|
}ms**.\nAPI Latency is **${Math.round(
|
||||||
|
client.ws.ping
|
||||||
|
)}ms**.\n**Client uptime is ${format(process.uptime())}**`
|
||||||
|
);
|
||||||
|
});
|
||||||
|
};
|
Reference in New Issue
Block a user