easy version command

This commit is contained in:
SowinskiBraeden committed 2022-09-24 10:47:50 -07:00
1 parent ef21826c5c
commit 0b08b010f4
2 files changed
+14 -2

No files matched your search

+13 -1
View File
@@ -42,6 +42,12 @@ module.exports = {
description: "QuarksBot Credits",
value: "credits",
type: 1,
},
{
name: "version",
description: "Current version of the bot",
value: "version",
type: 1,
}
],
SlashCommand: {
@@ -54,7 +60,13 @@ module.exports = {
*/
run: async (client, interaction, args, { GuildDB }) => {
if (args[0].name == 'commands') {
if (args[0].name == 'version') {
const versionEmbed = new EmbedBuilder()
.setTitle(`Current QuarksBot Version`)
.setDescription(client.config.Version);
return interaction.send({ embeds: [versionEmbed] });
} else if (args[0].name == 'commands') {
let Commands = client.commands.filter((cmd) => {
return !cmd.debug
}).map((cmd) =>
+1 -1
View File
@@ -2,7 +2,7 @@ require('dotenv').config();
module.exports = {
Dev: "PROD.",
Version: "12.5.0",
Version: "12.6.0",
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
DefaultPrefix: "?",
ServerID: "955668596745461830",