diff --git a/Dockerfile b/Dockerfile index 47c7326..ca2350b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,4 +53,4 @@ FROM base as production COPY --from=build --chown=node:node /opt/dist ./dist COPY --from=modules --chown=node:node /opt/node_modules ./node_modules -CMD node dist/backend/app.js \ No newline at end of file +CMD node dist/src/index.js \ No newline at end of file diff --git a/src/commands/admin/manageMemberDepartmentRolesCommand.ts b/src/commands/admin/manageMemberDepartmentRolesCommand.ts index 6a9f76e..bd3ff2a 100644 --- a/src/commands/admin/manageMemberDepartmentRolesCommand.ts +++ b/src/commands/admin/manageMemberDepartmentRolesCommand.ts @@ -16,12 +16,10 @@ export default class KickCommand extends SlashCommand { } async run(interaction: ChatInputCommandInteraction) { - let answer: InteractionResponse | undefined = undefined; - try { - answer = await interaction.deferReply({ ephemeral: true }); + await interaction.deferReply({ ephemeral: true }); - await manageMemberRoles() + await manageMemberRoles(); await interaction.followUp({ embeds: [ diff --git a/src/embeds/onlineEmbed.ts b/src/embeds/onlineEmbed.ts index 3afa0c6..7078d00 100644 --- a/src/embeds/onlineEmbed.ts +++ b/src/embeds/onlineEmbed.ts @@ -1,12 +1,13 @@ import { EmbedBuilder } from 'discord.js'; import { DiscordBotClient } from '../core/client'; import { Config } from '../core/config'; +import * as packageJson from '../../package.json'; export const onlineEmbed = () => new EmbedBuilder() .setColor('Green') .setTitle('Bot Started') - .setDescription(`**Version: ** ${process.env.npm_package_version}`) + .setDescription(`**Version: ** ${packageJson.version}`) .setTimestamp() .setFooter({ text: Config.BOT_NAME,