This commit is contained in:
Dragon Fire
2024-04-28 14:58:33 -04:00
parent a3aff5985f
commit 014c2e1697
+2 -2
View File
@@ -85,7 +85,7 @@ module.exports = class TweetCommand extends Command {
const imageCanvas = createCanvas(740, imageHeight); const imageCanvas = createCanvas(740, imageHeight);
const imageCtx = imageCanvas.getContext('2d'); const imageCtx = imageCanvas.getContext('2d');
canvas.height += imageHeight + 30; canvas.height += imageHeight + 30;
ctx.fillRect(0, base1.height, canvas.width, linesLen + imageHeight + 15); ctx.fillRect(0, base1.height, canvas.width, linesLen + imageHeight + 30);
const x = 0; const x = 0;
const y = 0; const y = 0;
const imageWidth = 740; const imageWidth = 740;
@@ -97,7 +97,7 @@ module.exports = class TweetCommand extends Command {
imageCtx.strokeStyle = '#303336'; imageCtx.strokeStyle = '#303336';
imageCtx.lineWidth = 5; imageCtx.lineWidth = 5;
imageCtx.stroke(); imageCtx.stroke();
ctx.drawImage(imageCanvas, 17, base1.height + linesLen, imageWidth, imageHeight); ctx.drawImage(imageCanvas, 17, base1.height + linesLen, imageWidth, imageHeight + 15);
} }
const likes = randomRange(Math.ceil(userData.followers * 0.0015), Math.ceil(userData.followers * 0.002)); const likes = randomRange(Math.ceil(userData.followers * 0.0015), Math.ceil(userData.followers * 0.002));
const retweets = randomRange(Math.ceil(userData.followers * 0.00015), Math.ceil(userData.followers * 0.0002)); const retweets = randomRange(Math.ceil(userData.followers * 0.00015), Math.ceil(userData.followers * 0.0002));