easy version command
This commit is contained in:
2 files changed
+14
-2
No files matched your search
+13
-1
@@ -42,6 +42,12 @@ module.exports = {
|
|||||||
description: "QuarksBot Credits",
|
description: "QuarksBot Credits",
|
||||||
value: "credits",
|
value: "credits",
|
||||||
type: 1,
|
type: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "version",
|
||||||
|
description: "Current version of the bot",
|
||||||
|
value: "version",
|
||||||
|
type: 1,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
SlashCommand: {
|
SlashCommand: {
|
||||||
@@ -54,7 +60,13 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
run: async (client, interaction, args, { GuildDB }) => {
|
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) => {
|
let Commands = client.commands.filter((cmd) => {
|
||||||
return !cmd.debug
|
return !cmd.debug
|
||||||
}).map((cmd) =>
|
}).map((cmd) =>
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ require('dotenv').config();
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Dev: "PROD.",
|
Dev: "PROD.",
|
||||||
Version: "12.5.0",
|
Version: "12.6.0",
|
||||||
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
||||||
DefaultPrefix: "?",
|
DefaultPrefix: "?",
|
||||||
ServerID: "955668596745461830",
|
ServerID: "955668596745461830",
|
||||||
|
|||||||
Reference in new issue
Block a user