mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user