diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 6fc7401..a43773a 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -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,