return on error
This commit is contained in:
parent
c83366d0a8
commit
45bc433060
@ -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