|
|
@ -71,16 +71,19 @@ class tweetCommand extends Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// remove zero width space
|
|
|
|
// remove zero width space
|
|
|
|
let text = args.text.replace('', '');
|
|
|
|
let text = '';
|
|
|
|
if (!text)
|
|
|
|
if (args.text) {
|
|
|
|
return;
|
|
|
|
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) {
|
|
|
|
if (text.length > 280) {
|
|
|
|
return message.channel.send('Your message is more than the 280 characters limit!');
|
|
|
|
return message.channel.send('Your message is more than the 280 characters limit!');
|
|
|
|