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.`); } }