If message is more than 280 characters send message to tell about it

merge-requests/4/head
Loïc Bersier 5 years ago
parent 71f7d3beb6
commit 27244b6867

@ -52,6 +52,10 @@ class tweetCommand extends Command {
text = rand.random(text, message);
if (text.length > 280) {
return message.channel.send('Your message is more than the 280 characters limit!');
}
try {
let client = new Twitter({
consumer_key: twiConsumer,

Loading…
Cancel
Save