mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Make communist look a bit better
This commit is contained in:
@@ -46,7 +46,7 @@ module.exports = class CommunistCommand extends Command {
|
|||||||
drawImageWithTint(ctx, data, 'red', 0, 0, data.width, data.height);
|
drawImageWithTint(ctx, data, 'red', 0, 0, data.width, data.height);
|
||||||
const { x, y, width, height } = centerImage(base, data);
|
const { x, y, width, height } = centerImage(base, data);
|
||||||
ctx.globalAlpha = 0.5;
|
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;
|
ctx.globalAlpha = 1;
|
||||||
const attachment = canvas.toBuffer();
|
const attachment = canvas.toBuffer();
|
||||||
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
|
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "119.15.0",
|
"version": "119.15.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user