SupportBot-7.2-Release

This commit is contained in:
ItzEmerald committed 2021-10-24 22:41:46 +01:00
1 parent 85667ddfad
commit d4f95e752b
22 files changed
+1371 -1065

No files matched your search

+18 -18
View File
@@ -4,27 +4,27 @@
const fs = require("fs");
const Discord = require("discord.js");
const yaml = require('js-yaml');
const supportbot = yaml.load(fs.readFileSync('./Data/supportbot.yml', 'utf8'));
const cmdconfig = yaml.load(fs.readFileSync('./Data/commands.yml', 'utf8'));
const yaml = require("js-yaml");
const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8"));
const cmdconfig = yaml.load(fs.readFileSync("./Data/commands.yml", "utf8"));
const Command = require("../Structures/Command.js");
module.exports = new Command({
name: cmdconfig.PingCommand,
description: cmdconfig.PingCommandDesc,
type: "BOTH",
slashCommandOptions: [],
permission: "SEND_MESSAGES",
name: cmdconfig.PingCommand,
description: cmdconfig.PingCommandDesc,
slashCommandOptions: [],
permission: "SEND_MESSAGES",
async run(message, args, client) {
async run(interaction) {
const PingEmbed = new Discord.MessageEmbed()
.setDescription(
`:ping_pong: **Ping:** \`${interaction.client.ws.ping} ms\``
)
.setColor(supportbot.EmbedColour);
const PingEmbed = new Discord.MessageEmbed()
.setDescription(`:ping_pong: **Ping:** \`${client.ws.ping} ms\``)
.setColor(supportbot.EmbedColour)
message.channel.send({
embeds: [PingEmbed]
});
}
});
interaction.reply({
embeds: [PingEmbed],
});
},
});