Make ghost a bit more transparent

This commit is contained in:
Dragon Fire
2020-04-19 16:25:12 -04:00
parent 0a3f632b7a
commit 6de729f118
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class GhostCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, data.width, data.height);
ctx.globalAlpha = 0.5;
ctx.globalAlpha = 0.25;
ctx.drawImage(data, 0, 0);
const attachment = canvas.toBuffer();
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');