return on error

This commit is contained in:
Raven Scott 2023-05-05 17:48:32 +02:00
parent c83366d0a8
commit 45bc433060

View File

@ -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);
}
}
}