From cc3a34a50c83b043bb9e784ae6d8ceeafb94ca3b Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 25 Nov 2019 23:19:37 +0100 Subject: [PATCH] remove prompt in case people want to tweet only an image --- commands/general/tweet.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index efc8160..b3baf8b 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -21,9 +21,6 @@ class tweetCommand extends Command { { id: 'text', type: 'string', - prompt: { - start: 'Write something to tweet', - }, match: 'rest' } ], @@ -40,6 +37,8 @@ class tweetCommand extends Command { let date = new Date(); let Attachment = (message.attachments).array(); + if (!Attachment[0] && !args.text) return message.channel.send('You need to input something for me to tweet!'); + let T = new Twit({ consumer_key: twiConsumer, consumer_secret: twiConsumerSecret,