diff --git a/util/wit.js b/util/wit.js index 3f5d070..71db1e5 100644 --- a/util/wit.js +++ b/util/wit.js @@ -26,6 +26,7 @@ module.exports.execute = function(message) { // Send the message to wit.ai client.message(message.content) .then(response => { + if (message.deleted) return; let action = response.intents[0]; // "Execute" the intent.