return on error

This commit is contained in:
Raven Scott 2023-05-05 17:48:32 +02:00 committed by MrTuxedo
parent 9197996ac7
commit fb08f0b592

View File

@ -179,7 +179,7 @@ client.on('messageCreate', async (message) => {
} catch (err) { } catch (err) {
console.error(err); console.error(err);
sendRand(errorMessages) return sendRand(errorMessages)
} finally { } finally {
setPresenceOnline() setPresenceOnline()
setBusy(message.author.id, false); setBusy(message.author.id, false);
@ -236,7 +236,7 @@ async function generateResponse(conversation, message) {
} catch (err) { } catch (err) {
console.error(err); console.error(err);
sendRand(errorMessages); return sendRand(errorMessages);
} }
} }
} }