diff --git a/commands/avataredit/rip.js b/commands/avataredit/rip.js index 554b03b7..b27c651b 100644 --- a/commands/avataredit/rip.js +++ b/commands/avataredit/rip.js @@ -30,10 +30,10 @@ module.exports = class RIPCommand extends Command { const userAvatar = user.displayAvatarURL.replace('.jpg', '.png').replace('.gif', '.png'); let images = []; images.push(Jimp.read(userAvatar)); - images.push(Jimp.read('./images/gravestone.jpg')); + images.push(Jimp.read('./images/gravestone.png')); const [avatar, gravestone] = await Promise.all(images); avatar.resize(200, 200); - gravestone.blit(avatar, 60, 65); + gravestone.blit(avatar, 158, 51); gravestone.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return message.say(':x: Error! Something went wrong!'); return message.channel.send({files: [{attachment: buff}]}); diff --git a/images/gravestone.jpg b/images/gravestone.jpg deleted file mode 100644 index 307b7897..00000000 Binary files a/images/gravestone.jpg and /dev/null differ diff --git a/images/gravestone.png b/images/gravestone.png new file mode 100644 index 00000000..bbe09161 Binary files /dev/null and b/images/gravestone.png differ diff --git a/package.json b/package.json index dbf19f80..615895dd 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "node": "7.9.0" }, "dependencies": { + "canvas": "^1.6.5", "cheerio": "^0.22.0", "custom-translate": "dragonfire535/custom-translate", "discord.js": "hydrabolt/discord.js",