mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Fix
This commit is contained in:
@@ -84,7 +84,7 @@ module.exports = class TweetCommand extends Command {
|
|||||||
const imageHeightRatio = 740 / imageData.width;
|
const imageHeightRatio = 740 / imageData.width;
|
||||||
imageHeight = imageData.height * imageHeightRatio;
|
imageHeight = imageData.height * imageHeightRatio;
|
||||||
canvas.height += imageHeight + 15;
|
canvas.height += imageHeight + 15;
|
||||||
ctx.fillRect(0, base1.height + linesLen, canvas.width, imageHeight + 15);
|
ctx.fillRect(0, base1.height, canvas.width, linesLen + imageHeight + 15);
|
||||||
ctx.drawImage(imageData, 17, base1.height + linesLen, 740, imageHeight);
|
ctx.drawImage(imageData, 17, base1.height + linesLen, 740, imageHeight);
|
||||||
}
|
}
|
||||||
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));
|
||||||
|
|||||||
Reference in New Issue
Block a user