fix
This commit is contained in:
parent
d676ca2c98
commit
335dcda79d
@ -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.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user