From c740459352d3192ed1f7db721267d7d8e007cff1 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Mon, 8 Oct 2018 18:10:35 +0200 Subject: [PATCH] If succesfull delete the author message --- commands/fun/despacito.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/fun/despacito.js b/commands/fun/despacito.js index e653dcdd..1b723fcf 100644 --- a/commands/fun/despacito.js +++ b/commands/fun/despacito.js @@ -24,10 +24,11 @@ module.exports = class DespacitoCommand extends Command { const despacitoNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; message.channel.send({files: [responseObject[despacitoNumber]]}); } else if (user.id === message.author.id) { - message.say(`Did you just try to despacitoad yourself?`) + message.say(`Did you just try to despacitoad yourself?`); } else if (user.id === this.client.user.id) { - message.say('Nice try but you wont get me :^)') + message.say('Nice try but you wont get me :^)'); } else - message.say(`${user}, you have been despacitoad`) + message.delete(); + message.say(`${user}, you have been despacitoad`); } }; \ No newline at end of file