mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Export command leaderboard on shutdown command
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = class ChiIdeaCommand extends Command {
|
||||
ctx.font = '15px Wild Words';
|
||||
let fontSize = 15;
|
||||
while (ctx.measureText(text).width > 500) {
|
||||
fontSize -= 1;
|
||||
fontSize--;
|
||||
ctx.font = `${fontSize}px Wild Words`;
|
||||
}
|
||||
const lines = await wrapText(ctx, text, 83);
|
||||
|
||||
Reference in New Issue
Block a user