canvas succ

This commit is contained in:
Daniel Odendahl Jr
2017-11-02 02:50:46 +00:00
parent 79ccfa0341
commit 96c762a552
+2 -2
View File
@@ -42,8 +42,8 @@ module.exports = class LookWhatKarenHaveCommand extends Command {
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, base.width, base.height);
ctx.rotate(-6.5 * (Math.PI / 180));
ctx.drawImage(avatar, 517, 8, 512, 512);
ctx.rotate(-6.5 * (Math.PI / 180));
ctx.drawImage(avatar, 514, 50, 512, 512);
ctx.rotate(6.5 * (Math.PI / 180));
ctx.drawImage(base, 0, 0);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'look-what-karen-have.png' }] });
} catch (err) {