forked from Supositware/Haha-Yes
please
This commit is contained in:
parent
ea5d0a50de
commit
e2527bf811
1 changed files with 11 additions and 8 deletions
|
@ -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!');
|
||||
|
|
Loading…
Reference in a new issue