HD new-password

This commit is contained in:
Dragon Fire
2020-12-27 10:03:06 -05:00
parent c205ca84ed
commit 405ac3867f
3 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -49,9 +49,9 @@ module.exports = class NewPasswordCommand extends Command {
const canvas = createCanvas(base.width, base.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0);
ctx.font = '25px Noto';
ctx.fillText(shortenText(ctx, weak, 390), 40, 113);
ctx.fillText(shortenText(ctx, strong, 390), 40, 351);
ctx.font = '50px Noto';
ctx.fillText(shortenText(ctx, weak, 780), 80, 226);
ctx.fillText(shortenText(ctx, strong, 780), 80, 702);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'new-password.png' }] });
}
};