From 335dcda79d0b08545d911f88e8c7d22bb4ea2224 Mon Sep 17 00:00:00 2001 From: Raven Date: Fri, 4 Oct 2024 04:18:54 -0400 Subject: [PATCH] fix --- bot/installableApp.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bot/installableApp.js b/bot/installableApp.js index 2fb8965..f39a178 100644 --- a/bot/installableApp.js +++ b/bot/installableApp.js @@ -47,19 +47,17 @@ async function resetConversationIfExpired(userId) { const response = await axios.post(`${process.env.API_PATH}/reset-conversation`, {}, { headers: { 'Content-Type': 'application/json', - 'x-forwarded-for-id': interaction.user.id, - 'x-forwarded-for-name': interaction.user.username + 'x-forwarded-for-id': userId, } }); console.log(response.status); - interaction.reply({ content: 'Conversation reset successfully.', ephemeral: isEphemeral(interaction.user.id) }); + console.log(`Conversation history reset for user ${userId} due to inactivity.`); } catch (error) { console.log(error); - interaction.reply({ content: 'Failed to reset the conversation.', ephemeral: isEphemeral(interaction.user.id) }); + console.log(`Conversation history failed to reset for user ${userId} due to inactivity.`); } - console.log(`Conversation history reset for user ${userId} due to inactivity.`); } }