This commit is contained in:
Dragon Fire
2020-05-27 00:42:16 -04:00
parent 368335256d
commit 5cf93668a6
+1 -1
View File
@@ -68,7 +68,7 @@ module.exports = class TweetCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.font = '23px Noto';
const lines = await wrapText(ctx, text, 710);
const linesLen = (23 * lines.length) + (15 * lines.length);
const linesLen = (23 * lines.length) + (15 * (lines.length - 1));
canvas.height += linesLen;
const likes = Math.floor(Math.random() * 999999) + 1;
const retweets = Math.floor(Math.random() * 999999) + 1;