add turn on time ping command
This commit is contained in:
parent
21f979fa69
commit
5503e2d143
|
@ -4,6 +4,8 @@ import {
|
||||||
EmbedBuilder,
|
EmbedBuilder,
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
|
|
||||||
|
import { onTime } from "../../main.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName("ping")
|
.setName("ping")
|
||||||
|
@ -26,6 +28,10 @@ export default {
|
||||||
{
|
{
|
||||||
name: "RoundTrip latency",
|
name: "RoundTrip latency",
|
||||||
value: `${defer.createdTimestamp - interaction.createdTimestamp}ms`,
|
value: `${defer.createdTimestamp - interaction.createdTimestamp}ms`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "When bot Turned on",
|
||||||
|
value: onTime.toString(),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.setFooter({ text: `Bot runner: ${process.env.RUNNER_NAME}` });
|
.setFooter({ text: `Bot runner: ${process.env.RUNNER_NAME}` });
|
||||||
|
|
Loading…
Reference in a new issue