mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Add back nums
This commit is contained in:
@@ -77,7 +77,7 @@ module.exports = class TweetCommand extends Command {
|
|||||||
const likes = Math.floor(Math.random() * 100000) + 1;
|
const likes = Math.floor(Math.random() * 100000) + 1;
|
||||||
const retweets = Math.floor(Math.random() * 100000) + 1;
|
const retweets = Math.floor(Math.random() * 100000) + 1;
|
||||||
const quoteTweets = Math.floor(Math.random() * 100000) + 1;
|
const quoteTweets = Math.floor(Math.random() * 100000) + 1;
|
||||||
// const replies = Math.floor(Math.random() * 100000) + 1;
|
const replies = Math.floor(Math.random() * 100000) + 1;
|
||||||
ctx.fillStyle = '#15202b';
|
ctx.fillStyle = '#15202b';
|
||||||
ctx.fillRect(0, base1.height, canvas.width, linesLen);
|
ctx.fillRect(0, base1.height, canvas.width, linesLen);
|
||||||
ctx.drawImage(base1, 0, 0);
|
ctx.drawImage(base1, 0, 0);
|
||||||
@@ -109,9 +109,9 @@ module.exports = class TweetCommand extends Command {
|
|||||||
ctx.fillText('Twitter for Xiao', 31 + timeLen + 6, base2StartY + 16);
|
ctx.fillText('Twitter for Xiao', 31 + timeLen + 6, base2StartY + 16);
|
||||||
ctx.fillStyle = '#8899a6';
|
ctx.fillStyle = '#8899a6';
|
||||||
ctx.font = '16px Noto';
|
ctx.font = '16px Noto';
|
||||||
// ctx.fillText(formatNumberK(replies), 87, base2StartY + 139);
|
ctx.fillText(formatNumberK(replies), 87, base2StartY + 139);
|
||||||
// ctx.fillText(formatNumberK(likes), 509, base2StartY + 139);
|
ctx.fillText(formatNumberK(likes), 509, base2StartY + 139);
|
||||||
// ctx.fillText(formatNumberK(retweets), 300, base2StartY + 139);
|
ctx.fillText(formatNumberK(retweets + quoteTweets), 300, base2StartY + 139);
|
||||||
let currentLen = 31;
|
let currentLen = 31;
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.font = 'normal bold 18px Noto';
|
ctx.font = 'normal bold 18px Noto';
|
||||||
|
|||||||
Reference in New Issue
Block a user