From 5503e2d143589dc4ba8a298624e7d2d24b4c76d4 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 5 May 2023 19:04:54 +0900 Subject: [PATCH] add turn on time ping command --- src/command/commands/ping.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/command/commands/ping.ts b/src/command/commands/ping.ts index 61905a5..3f900c9 100755 --- a/src/command/commands/ping.ts +++ b/src/command/commands/ping.ts @@ -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}` });