Fix Heart Drawing

This commit is contained in:
Dragon Fire
2020-04-16 22:47:06 -04:00
parent 777b102e68
commit 88dcda9131
+1 -1
View File
@@ -73,7 +73,7 @@ module.exports = class ShipCommand extends Command {
ctx.fillText(`~${level}%~`, 600, 230);
ctx.fillText(this.calculateLevelText(level), 600, 296);
ctx.font = '90px Pinky Cupid';
ctx.fillText(level > 49 ? '❤️' : '💔');
ctx.fillText(level > 49 ? '❤️' : '💔', 600, 100);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'ship.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);