Add Xiao comments

This commit is contained in:
Dragon Fire
2024-04-28 21:43:20 -04:00
parent ce449d4e2d
commit 01d0e4fda1
2 changed files with 35 additions and 18 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ module.exports = class HatCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.drawImage(avatar, 0, 0);
ctx.drawImage(base, 0, 0, avatar.width, avatar.height);
const comment = hat.comment.replace(/{{user}}/g, user.tag);
const comment = user.id === this.client.user.id ? hat.commentMe : hat.comment.replace(/{{user}}/g, user.tag);
return msg.say(comment, { files: [{ attachment: canvas.toBuffer(), name: `${type}-hat.png` }] });
}
};