diff --git a/assets/images/beautiful.png b/assets/images/beautiful.png index 69dc4835..8e95aeae 100644 Binary files a/assets/images/beautiful.png and b/assets/images/beautiful.png differ diff --git a/assets/images/dexter.png b/assets/images/dexter.png index 2da466ea..21d9780e 100644 Binary files a/assets/images/dexter.png and b/assets/images/dexter.png differ diff --git a/assets/images/yu-gi-oh-token.png b/assets/images/yu-gi-oh-token.png index b882dda1..71aa29a2 100644 Binary files a/assets/images/yu-gi-oh-token.png and b/assets/images/yu-gi-oh-token.png differ diff --git a/commands/avatar-edit/3000-years.js b/commands/avatar-edit/3000-years.js index 3244df24..51540085 100644 --- a/commands/avatar-edit/3000-years.js +++ b/commands/avatar-edit/3000-years.js @@ -39,6 +39,8 @@ module.exports = class YearsCommand extends Command { const avatar = await loadImage(body); const canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); + ctx.fillStyle = 'white'; + ctx.fillRect(0, 0, base.width, base.height); ctx.drawImage(base, 0, 0); ctx.drawImage(avatar, 461, 127, 200, 200); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: '3000-years.png' }] }); diff --git a/commands/avatar-edit/demotivational-poster.js b/commands/avatar-edit/demotivational-poster.js index aeaaf699..7f331932 100644 --- a/commands/avatar-edit/demotivational-poster.js +++ b/commands/avatar-edit/demotivational-poster.js @@ -53,6 +53,8 @@ module.exports = class DemotivationalPosterCommand extends Command { const avatar = await loadImage(body); const canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); + ctx.fillStyle = 'white'; + ctx.fillRect(0, 0, base.width, base.height); ctx.drawImage(avatar, 68, -57, 612, 612); ctx.drawImage(base, 0, 0); ctx.textAlign = 'center'; diff --git a/commands/avatar-edit/yu-gi-oh-token.js b/commands/avatar-edit/yu-gi-oh-token.js index 7bb369b5..97bd8a42 100644 --- a/commands/avatar-edit/yu-gi-oh-token.js +++ b/commands/avatar-edit/yu-gi-oh-token.js @@ -39,6 +39,8 @@ module.exports = class YuGiOhTokenCommand extends Command { const avatar = await loadImage(body); const canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); + ctx.fillStyle = 'white'; + ctx.fillRect(0, 0, base.width, base.height); ctx.drawImage(base, 0, 0); ctx.drawImage(avatar, 45, 102, 293, 294); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'yu-gi-oh-token.png' }] }); diff --git a/package.json b/package.json index c23c1013..93801eb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "54.1.0", + "version": "54.1.1", "description": "Your personal server companion.", "main": "XiaoBot.js", "scripts": {