fix death

This commit is contained in:
Jan 2021-02-10 14:21:09 +01:00
parent 6720bee0e5
commit a4e568dec6

View file

@ -26,6 +26,7 @@ module.exports.execute = function(message) {
// Send the message to wit.ai // Send the message to wit.ai
client.message(message.content) client.message(message.content)
.then(response => { .then(response => {
if (message.deleted) return;
let action = response.intents[0]; let action = response.intents[0];
// "Execute" the intent. // "Execute" the intent.