mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Export command leaderboard on shutdown command
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = class GenieRulesCommand extends Command {
|
||||
ctx.font = '40px Noto';
|
||||
let fontSize = 40;
|
||||
while (ctx.measureText(text).width > 1143) {
|
||||
fontSize -= 1;
|
||||
fontSize--;
|
||||
ctx.font = `${fontSize}px Noto`;
|
||||
}
|
||||
const lines = await wrapText(ctx, text, 381);
|
||||
|
||||
Reference in New Issue
Block a user