This commit is contained in:
Dragon Fire
2024-04-04 16:15:18 -04:00
parent 2b39d295b0
commit 58a520b5f6
+4 -4
View File
@@ -44,14 +44,14 @@ module.exports = class ICantBelieveCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.textBaseline = 'top';
ctx.drawImage(base, 0, 0);
ctx.rotate(-7 * (Math.PI / 180));
ctx.rotate(-8 * (Math.PI / 180));
ctx.font = this.client.fonts.get('The Lord Night.ttf').toCanvasString(94);
ctx.lineWidth = 6;
ctx.strokeStyle = 'white';
ctx.strokeText(text, 13, 64, 171);
ctx.strokeText(text, 13, 54, 171);
ctx.fillStyle = '#13487b';
ctx.fillText(text, 13, 64, 171);
ctx.rotate(7 * (Math.PI / 180));
ctx.fillText(text, 13, 54, 171);
ctx.rotate(8 * (Math.PI / 180));
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'i-cant-believe.png' }] });
}
};