catch promise rejection

This commit is contained in:
Dalton
2018-12-12 19:34:13 -08:00
parent 7216b2e075
commit 07b4824f76

5
bot.js
View File

@@ -675,7 +675,10 @@ client.on('message', message => {
break;
case 'async':
asyncImageRequest(message);
asyncImageRequest(message)
.catch(error => {
sendToBotTestingChannel(error.message);
});
break;
// Voice commands