mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
Add Xiao comments
This commit is contained in:
@@ -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` }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user