a little more
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 13s

This commit is contained in:
2025-08-08 01:08:16 +02:00
parent 45d2b2c352
commit 6b58361d31
2 changed files with 37 additions and 0 deletions

10
commands/estimate.js Normal file
View 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
View 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())}**`
);
});
};