Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
missed version command
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasptsch committed Dec 19, 2021
1 parent 08662c0 commit f1d5477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ export { ping } from "./ping";
export { template } from "./template";
export { text } from "./text";
export { transfer } from "./transfer";
export { version } from "./version";
6 changes: 3 additions & 3 deletions src/commands/version.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { SlashCommandBuilder } from "@discordjs/builders";
import { CommandInteraction } from "discord.js";
import version from "../version.json";
import versionFile from "../version.json";
import { Command } from "./command";

export const avc: Command = {
export const version: Command = {
data: new SlashCommandBuilder()
.setName("version")
.setDescription("The version of the bot in use."),
async execute(interaction: CommandInteraction) {
interaction.reply({
content: `The version of the bot is \`${version.version}\`.`,
content: `The version of the bot is \`${versionFile.version}\`.`,
});
},
};

0 comments on commit f1d5477

Please sign in to comment.