mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
HD new-password
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 96 KiB |
@@ -49,9 +49,9 @@ module.exports = class NewPasswordCommand extends Command {
|
|||||||
const canvas = createCanvas(base.width, base.height);
|
const canvas = createCanvas(base.width, base.height);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.font = '25px Noto';
|
ctx.font = '50px Noto';
|
||||||
ctx.fillText(shortenText(ctx, weak, 390), 40, 113);
|
ctx.fillText(shortenText(ctx, weak, 780), 80, 226);
|
||||||
ctx.fillText(shortenText(ctx, strong, 390), 40, 351);
|
ctx.fillText(shortenText(ctx, strong, 780), 80, 702);
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'new-password.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'new-password.png' }] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "124.3.0",
|
"version": "124.3.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user