From 74a1702f9b405019a289a710e4b637aaf5d9a92b Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 2 Dec 2018 03:33:36 +0100 Subject: [PATCH] forgot to delete the message --- commands/fun/sayd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/fun/sayd.js b/commands/fun/sayd.js index 911f389..2fc69e6 100644 --- a/commands/fun/sayd.js +++ b/commands/fun/sayd.js @@ -8,7 +8,8 @@ module.exports = class saydCommand extends Command { aliases: ['repeatd'], group: 'fun', memberName: 'sayd', - description: `Repeat the text you send ( can also use [verb] [noun] [adverb] [adjective] [activitie] [celebreties] [countrie] [diseases] [elements] [hobbie] [music] [prefixe] [pronoun] [state] [title] [unit] [member] [number] to replace it with something else )`, args: [ + description: `Repeat the text you send and dellete it afterward ( can also use [verb] [noun] [adverb] [adjective] [activitie] [celebreties] [countrie] [diseases] [elements] [hobbie] [music] [prefixe] [pronoun] [state] [title] [unit] [member] [number] to replace it with something else )`, + args: [ { key: 'text', prompt: 'What do you want me to say', @@ -73,6 +74,7 @@ module.exports = class saydCommand extends Command { } while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]') || text.includes('[number]') || text.includes('[activities]') || text.includes('[celebrities]') || text.includes('[countries]') || text.includes('[diseases]') || text.includes('[elements]') || text.includes('[hobbies]') || text.includes('[music]') || text.includes('[prefixes]') || text.includes('[pronoun]') || text.includes('[state]') || text.includes('[title]') || text.includes('[unit]')) // Send the final text + message.delete(); message.say(text); } }; \ No newline at end of file