From 0b08b010f4816ad1876b347f4a0ebc1ff6c41437 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sat, 24 Sep 2022 10:47:50 -0700 Subject: [PATCH] easy version command --- commands/help.js | 14 +++++++++++++- config/config.js | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/commands/help.js b/commands/help.js index 0fbccbc..23fbf28 100644 --- a/commands/help.js +++ b/commands/help.js @@ -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) => diff --git a/config/config.js b/config/config.js index 5fecf0d..45a5a4f 100644 --- a/config/config.js +++ b/config/config.js @@ -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",