From a5cd7446c4e7af58301a0c864888dee80c3af735 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 10 May 2017 05:50:10 +0000 Subject: [PATCH] Done yet? --- commands/avataredit/bobross.js | 2 +- commands/avataredit/steamcard.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/avataredit/bobross.js b/commands/avataredit/bobross.js index abded52f..6d626f37 100644 --- a/commands/avataredit/bobross.js +++ b/commands/avataredit/bobross.js @@ -37,7 +37,7 @@ module.exports = class BobRossCommand extends Command { ctx.fillStyle = 'white'; ctx.fillRect(0, 0, 600, 775); ctx.rotate(3 * Math.PI / 180); - ctx.drawImage(avatar, 44, 90, 300, 300); + ctx.drawImage(avatar, 44, 80, 300, 300); ctx.rotate(-3 * Math.PI / 180); ctx.drawImage(base, 0, 0); }; diff --git a/commands/avataredit/steamcard.js b/commands/avataredit/steamcard.js index fdfbc7f5..5ba8f596 100644 --- a/commands/avataredit/steamcard.js +++ b/commands/avataredit/steamcard.js @@ -37,13 +37,13 @@ module.exports = class SteamCardCommand extends Command { const base = new Image(); const avatar = new Image(); const generate = () => { - ctx.font = '32px Open Sans'; - ctx.fillStyle = 'white'; - ctx.fillText(username, 38, 20); ctx.fillStyle = 'white'; ctx.fillRect(0, 0, 494, 568); ctx.drawImage(avatar, 25, 25, 450, 450); ctx.drawImage(base, 0, 0); + ctx.font = '32px Open Sans'; + ctx.fillStyle = 'white'; + ctx.fillText(username, 38, 20); }; const cardImg = await request .get('https://i.imgur.com/JF0WwQX.png'); @@ -55,7 +55,7 @@ module.exports = class SteamCardCommand extends Command { return msg.channel.send({ files: [{ attachment: canvas.toBuffer(), name: 'card.png' }] }) .catch(err => msg.say(err)); } catch (err) { - return msg.say('An Error Occurred while creating the image. ' + err); + return msg.say('An Error Occurred while creating the image.'); } } };