diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 54160a78..5e06066b 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -71,16 +71,19 @@ class tweetCommand extends Command { } // remove zero width space - let text = args.text.replace('​', ''); - if (!text) - return; + let text = ''; + if (args.text) { + text = args.text.replace('​', ''); + + /* + //Filter out swear word + text = filter.clean(text); + */ + + text = rand.random(text, message); + } - /* - //Filter out swear word - text = filter.clean(text); - */ - text = rand.random(text, message); if (text.length > 280) { return message.channel.send('Your message is more than the 280 characters limit!');