This commit is contained in:
Dragon Fire
2020-04-02 15:55:52 -04:00
parent c25ce78122
commit 40c91e066f
+1
View File
@@ -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`));