Fix steam-card text

This commit is contained in:
Daniel Odendahl Jr
2018-08-18 12:38:48 +00:00
parent 0af4f8e8ea
commit 3786af5f11
+3 -3
View File
@@ -40,13 +40,13 @@ module.exports = class SteamCardCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.fillStyle = '#feb2c1';
ctx.fillRect(0, 0, base.width, base.height);
ctx.fillStyle = 'white';
ctx.drawImage(avatar, 12, 19, 205, 205);
ctx.drawImage(base, 0, 0);
ctx.font = '14px Noto';
ctx.fillText(user.username, 14, 11);
ctx.fillStyle = 'black';
ctx.fillText(user.username, 16, 12);
ctx.fillText(user.username, 16, 27);
ctx.fillStyle = 'white';
ctx.fillText(user.username, 15, 26);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'steam-card.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);