Files

30 lines
813 B
JavaScript
Raw Permalink Normal View History

2021-10-24 22:46:36 +01:00
// SupportBot | Emerald Services
// Ping Command
const fs = require("fs");
const Discord = require("discord.js");
const yaml = require("js-yaml");
2026-05-16 15:10:27 +01:00
const supportbot = require("../../Structures/ConfigStore").supportbot;
const cmdconfig = require("../../Structures/ConfigStore").commands;
2021-10-24 22:46:36 +01:00
2025-09-20 23:09:22 +01:00
const Command = require("../../Structures/Command.js");
2021-10-24 22:46:36 +01:00
module.exports = new Command({
2022-07-23 07:50:12 +01:00
name: cmdconfig.Ping.Command,
description: cmdconfig.Ping.Description,
options: [],
2022-07-23 07:50:12 +01:00
permissions: cmdconfig.Ping.Permission,
2021-10-24 22:46:36 +01:00
async run(interaction) {
2022-07-22 13:19:05 +01:00
const PingEmbed = new Discord.EmbedBuilder()
2021-10-24 22:46:36 +01:00
.setDescription(
2026-05-26 20:11:22 +01:00
`:ping_pong: **Ping:** \`${interaction.client.ws.ping} ms\``,
2021-10-24 22:46:36 +01:00
)
2022-08-12 01:35:36 +01:00
.setColor(supportbot.Embed.Colours.General);
2021-10-24 22:46:36 +01:00
2026-05-26 20:11:22 +01:00
await interaction.reply({
2021-10-24 22:46:36 +01:00
embeds: [PingEmbed],
});
},
});