<commit_before>const fileName = __filename.slice(__dirname.length + 1)
var commands = [
    { cmd: "!!inspect", fn: "inspect", file: fileName }
];

module.exports = function(bot, sendSync) {
    return {
        commands: commands,
        inspect: function (message) {
            var words = message.content.split(" "), user = message.channel.server.members.get("username", words[1]);
            bot.sendMessage(message.author, "Name: " + user.username + "\nID: " + user.id);
            bot.sendMessage(message.channel, "_Inspect info for " + words[1] + " sent._");
            return;
        }
    };
}<commit_msg>Changed to support names with spaces<commit_after>const fileName = __filename.slice(__dirname.length + 1)
var commands = [
    { cmd: "!!inspect", fn: "inspect", file: fileName }
];

module.exports = function(bot, sendSync) {
    return {
        commands: commands,
        inspect: function (message) {
            //extract username
            var words = message.content.split(" ");
            words.splice(0, 1);
            words = words.join(" ");
            var user = message.channel.server.members.get("username", words)
            bot.sendMessage(message.author, "Name: " + user.username + "\nID: " + user.id);
            bot.sendMessage(message.channel, "_Inspect info for " + words + " sent._");
            return;
        }
    };
}
{'fraction_non_alphanumeric': 0.14941690962099125, 'fraction_numerical': 0.004373177842565598, 'mean_word_length': 2.4411027568922306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2841145', 'n_tokens_mistral': 395, 'n_tokens_neox': 396, 'n_words': 90}