From a4e568dec67575780d5e79d9589adc1878c44a49 Mon Sep 17 00:00:00 2001 From: Jan <26145882+imverum@users.noreply.github.com> Date: Wed, 10 Feb 2021 14:21:09 +0100 Subject: [PATCH] fix death --- util/wit.js | 1 + 1 file changed, 1 insertion(+) 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.