From 7f319d4e165476d823e95953a94a511c37a81bfd Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 26 Dec 2023 00:26:16 +0100 Subject: [PATCH 1/3] docker fix --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 47c7326..c14f133 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/index.js \ No newline at end of file From 3c2333c8bf029eb3c498dec0e282101318f57c94 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 26 Dec 2023 00:30:11 +0100 Subject: [PATCH 2/3] fixed path --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c14f133..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/index.js \ No newline at end of file +CMD node dist/src/index.js \ No newline at end of file From d9317879233911ee513fe1f0108f614c7e6f85c1 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 26 Dec 2023 00:51:37 +0100 Subject: [PATCH 3/3] fix --- src/commands/admin/manageMemberDepartmentRolesCommand.ts | 6 ++---- src/embeds/onlineEmbed.ts | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) 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,