<commit_before>exports.run = async (client, msg, [args]) => {
    if (msg.mentions.users.size === 0) {
        return msg.channel.send(msg.author.avatarURL);	
    }
    
    let user = msg.mentions.users.first();
    return msg.channel.send(user.avatarURL);
};
  
exports.conf = {
    enabled: true,
    runIn: ["text", "dm", "group"],
    aliases: [],
    permLevel: 0,
    botPerms: [],
    requiredFuncs: [],
};
  
exports.help = {
    name: "avatar",
    description: "Fetch a user's avatar!",
    usage: "[mention]",
    usageDelim: "",
};<commit_msg>Update avatar.js<commit_after>exports.run = function(client, message, [...args]) {
    let guild = message.guild;

    if (message.mentions.users.size === 0) {
        if (args.length < 1) { user = message.author; }
        user = client.users.find("username", `${args}`);
        
        if (user == null) {
            var User = guild.members.find("nickname", `${args}`);
            if (User == null) { return message.reply("User not found. Please try again!"); }
            user = User.user;
        }
    } if (message.mentions.users.size > 0) {
        user = message.mentions.users.first();
    } if (!user || user === null) { 
        return message.reply("User not found. Please try again!"); 
    }

    return message.channel.send(user.avatarURL);
};
  
exports.conf = {
    enabled: true,
    runIn: ["text", "dm"],
    aliases: [],
    permLevel: 0,
    botPerms: [],
    requiredFuncs: [],
};
  
exports.help = {
    name: "avatar",
    description: "Fetch a user's avatar!",
    usage: "[user:str]",
    usageDelim: "",
    extendedHelp: "Now featuring the ablity to search by username and nickname without the ping!"
};
{'fraction_non_alphanumeric': 0.17355371900826447, 'fraction_numerical': 0.0035419126328217238, 'mean_word_length': 2.538622129436326, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5293704', 'n_tokens_mistral': 562, 'n_tokens_neox': 547, 'n_words': 130}