diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 54160a7..5e06066 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!');