diff --git a/index.js b/index.js index 0caac29..f121ae1 100644 --- a/index.js +++ b/index.js @@ -67,6 +67,10 @@ client.on('interactionCreate', async (interaction) => { switch (interaction.commandName) { case "reset": // Remove the session + if (!sessions[interaction.channelId]) return interaction.reply({ + ephemeral: true, + content: lang.empty + }); if (!sessions[interaction.channelId].processing) { await resetSession(interaction.channelId); interaction.reply(lang.reset);