This commit is contained in:
Daniel Odendahl Jr
2017-09-11 19:33:58 +00:00
parent 545486637f
commit 28dff06362
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ module.exports = class CardCommand extends Command {
ctx.fillRect(0, 0, 390, 544);
ctx.drawImage(avatar, 11, 11, 370, 370);
ctx.drawImage(base, 0, 0);
ctx.font = '18px Roboto';
ctx.font = '18px Noto';
ctx.fillStyle = 'black';
ctx.fillText(member.displayName, 30, 62);
ctx.fillText('Discord Join Date:', 148, 400);
@@ -63,7 +63,7 @@ module.exports = class CardCommand extends Command {
ctx.fillText(rarity, 73, 411);
ctx.fillText(cardID, 60, 457);
ctx.fillText(version.split('.')[0], 68, 502);
ctx.font = '14px Roboto';
ctx.font = '14px Noto';
ctx.fillText(member.id, 30, 355);
ctx.fillText(`#${member.user.discriminator}`, 313, 355);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'card.png' }] });
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = class SteamCardCommand extends Command {
ctx.fillRect(0, 0, 494, 568);
ctx.drawImage(avatar, 25, 25, 450, 450);
ctx.drawImage(base, 0, 0);
ctx.font = '30px Roboto';
ctx.font = '30px Noto';
ctx.fillText(member.displayName, 35, 48);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'steam-card.png' }] });
} catch (err) {
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = class SteamNowPlayingCommand extends Command {
ctx.drawImage(base, 0, 0);
ctx.drawImage(avatar, 21, 21, 32, 32);
ctx.fillStyle = '#90ba3c';
ctx.font = '10px Roboto';
ctx.font = '10px Noto';
ctx.fillText(member.displayName, 63, 26);
ctx.fillText(shorten(game, 35), 63, 54);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'steam-now-playing.png' }] });