From cfaebdd44697daaf9546efa1d87fa31d1e4190a3 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 16 Dec 2019 13:11:29 +0100 Subject: [PATCH] add a note that the character count may be inaccurate if it contained link --- commands/general/tweet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 09504b2f..896fb530 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -143,7 +143,7 @@ class tweetCommand extends Command { T.post('statuses/update', options, function (err, response) { if (err) { if (err.code == 88) return message.channel.send(err.message); // Rate limit exceeded - if (err.code == 186) return message.channel.send(`${err.message} Your message was ${text.length} characters, you need to remove ${text.length - 280} characters`); // Tweet needs to be a bit shorter. + if (err.code == 186) return message.channel.send(`${err.message} Your message was ${text.length} characters, you need to remove ${text.length - 280} characters (This count may be inaccurate if your message contained link)`); // Tweet needs to be a bit shorter. if (err.code == 187) return message.channel.send(err.message); // Status is a duplicate. if (err.code == 326) return message.channel.send(err.message); // To protect our users from spam and other malicious activity, this account is temporarily locked. console.error('OH NO!!!!');