This commit is contained in:
Dragon Fire
2024-05-03 10:28:55 -04:00
parent e92f705824
commit 6dbd29cb03
158 changed files with 158 additions and 159 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ module.exports = class FriendshipCommand extends Command {
ctx.fillText(this.calculateLevelText(level, self, owner, authorUser, botUser), 600, 296);
ctx.font = this.client.fonts.get('Pinky Cupid.otf').toCanvasString(90);
ctx.fillText(level > 49 ? '👍' : '👎', 600, 100);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'friendship.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'friendship.png' }] });
}
calculateLevelText(level, self, owner, authorUser, botUser) {
+1 -1
View File
@@ -93,7 +93,7 @@ module.exports = class ShipCommand extends Command {
ctx.fillText(this.calculateLevelText(level, self, owner, authorUser, botUser), 600, 296);
ctx.font = this.client.fonts.get('Pinky Cupid.otf').toCanvasString(90);
ctx.fillText(level > 49 ? '❤️' : '💔', 600, 100);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'ship.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'ship.png' }] });
}
calculateLevelText(level, self, owner, authorUser, botUser) {
+1 -1
View File
@@ -88,6 +88,6 @@ module.exports = class ThinkOfCommand extends Command {
ctx.fillText(thought.text, 600, 296);
ctx.font = this.client.fonts.get('Pinky Cupid.otf').toCanvasString(90);
ctx.fillText(thought.emoji, 600, 100);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'think-of.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'think-of.png' }] });
}
};