From e8a73af48a6788559206195c482b6a175f529d73 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 9 Jul 2020 20:40:15 -0400 Subject: [PATCH] Make communist look a bit better --- commands/edit-image/communist.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-image/communist.js b/commands/edit-image/communist.js index 471d20b3..5d6dcb96 100644 --- a/commands/edit-image/communist.js +++ b/commands/edit-image/communist.js @@ -46,7 +46,7 @@ module.exports = class CommunistCommand extends Command { drawImageWithTint(ctx, data, 'red', 0, 0, data.width, data.height); const { x, y, width, height } = centerImage(base, data); ctx.globalAlpha = 0.5; - ctx.drawImage(base, x, y, width, height); + ctx.drawImage(base, x, y, width * 0.9, height * 0.9); ctx.globalAlpha = 1; const attachment = canvas.toBuffer(); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.'); diff --git a/package.json b/package.json index 57caff4b..5e59ea22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.15.0", + "version": "119.15.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {