add turn on time ping command

This commit is contained in:
kdh8219 2023-05-05 19:04:54 +09:00
parent 21f979fa69
commit 5503e2d143
No known key found for this signature in database
GPG key ID: 2B5B609E12BB4C19

View file

@ -4,6 +4,8 @@ import {
EmbedBuilder,
} from "discord.js";
import { onTime } from "../../main.js";
export default {
data: new SlashCommandBuilder()
.setName("ping")
@ -26,6 +28,10 @@ export default {
{
name: "RoundTrip latency",
value: `${defer.createdTimestamp - interaction.createdTimestamp}ms`,
},
{
name: "When bot Turned on",
value: onTime.toString(),
}
)
.setFooter({ text: `Bot runner: ${process.env.RUNNER_NAME}` });