This commit is contained in:
Dragon Fire
2020-12-27 10:05:42 -05:00
parent 25bd3797e0
commit 1cb1043abc
+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 = '50px Noto';
ctx.fillText(shortenText(ctx, weak, 780), 70, 206);
ctx.fillText(shortenText(ctx, strong, 780), 70, 682);
ctx.font = '60px Noto';
ctx.fillText(shortenText(ctx, weak, 780), 70, 196);
ctx.fillText(shortenText(ctx, strong, 780), 70, 672);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'new-password.png' }] });
}
};