diff --git a/commands/avatar-edit/he-lives-in-you.js b/commands/avatar-edit/he-lives-in-you.js index 6e343f75..0a6f6138 100644 --- a/commands/avatar-edit/he-lives-in-you.js +++ b/commands/avatar-edit/he-lives-in-you.js @@ -40,13 +40,12 @@ module.exports = class HeLivesInYouCommand extends Command { const avatar = await loadImage(body); const avatarCanvas = createCanvas(avatar.width, avatar.height); const avatarCtx = avatarCanvas.getContext('2d'); - distort(avatarCtx, 0, 0, avatar.width, avatar.height); - const avatarDistort = await loadImage(avatarCanvas.toBuffer()); + distort(avatarCtx, 5, 0, 0, avatar.width, avatar.height); const canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); ctx.rotate(-24 * (Math.PI / 180)); - drawImageWithTint(ctx, avatarDistort, '#00115d', 75, 160, 130, 150); + drawImageWithTint(ctx, avatarCanvas, '#00115d', 75, 160, 130, 150); ctx.rotate(24 * (Math.PI / 180)); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'he-lives-in-you.png' }] }); } catch (err) {