return on error
This commit is contained in:
parent
9197996ac7
commit
fb08f0b592
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user