mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Fix
This commit is contained in:
@@ -131,6 +131,7 @@ module.exports = class HatCommand extends Command {
|
||||
|
||||
async run(msg, { type, user, addX, addY, scale }) {
|
||||
scale /= 100;
|
||||
if (scale === 0) scale = 1;
|
||||
const avatarURL = user.displayAvatarURL({ format: 'png', size: 512 });
|
||||
try {
|
||||
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'hat', `${type}.png`));
|
||||
|
||||
Reference in New Issue
Block a user