From 45bc433060990929c9a9051af362c50424c243e1 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Fri, 5 May 2023 17:48:32 +0200 Subject: [PATCH] return on error --- llamabot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llamabot.js b/llamabot.js index 8bfe977..97d7f84 100644 --- a/llamabot.js +++ b/llamabot.js @@ -179,7 +179,7 @@ client.on('messageCreate', async (message) => { } catch (err) { console.error(err); - sendRand(errorMessages) + return sendRand(errorMessages) } finally { setPresenceOnline() setBusy(message.author.id, false); @@ -236,7 +236,7 @@ async function generateResponse(conversation, message) { } catch (err) { console.error(err); - sendRand(errorMessages); + return sendRand(errorMessages); } } }