<commit_before>exports.run = function(client, message, [person]){
    message.delete().catch();

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

	if (person.id == client.user.id) {
        return message.channel.send("Why would you try and make me greet myself? I'm not that lonely!");
    }

	return message.channel.send(`Hello ${person.username}! `);
};

exports.conf = {
    enabled: true,
    runIn: ["text"],
    aliases: [],
    permLevel: 0,
    botPerms: [],
    requiredFuncs: [],
};

exports.help = {
  name: "greet",
  description: "Have Margarine greet you or someone with a hello!",
  usage: "[person:str]",
};
<commit_msg>Update greet.js<commit_after>exports.run = (client, message, [args]) => {
    message.delete().catch();

    let person = client.funcs.userSearch(client, message, args);

	if (person.id == client.user.id) {
        return message.channel.send("Why would you try and make me greet myself? I'm not that lonely!");
    }

	return message.channel.send(`Hello ${person.username}! `);
};

exports.conf = {
    enabled: true,
    runIn: ["text"],
    aliases: [],
    permLevel: 0,
    botPerms: [],
    requiredFuncs: [],
};

exports.help = {
  name: "greet",
  description: "Have Margarine greet you or someone with a hello!",
  usage: "[person:str]",
};

{'fraction_non_alphanumeric': 0.16294758692267775, 'fraction_numerical': 0.002594706798131811, 'mean_word_length': 2.5376146788990828, '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': '4300161', 'n_tokens_mistral': 618, 'n_tokens_neox': 582, 'n_words': 152}