<commit_before>const Discord = require("discord.js");
exports.run = (client, message, args) => {
            var reason = message.content.split(' ').slice(2).join(' ');
        var user = message.mentions.users.first();
        if (!user) return message.channel.send('Please include a user to warn.');
        if (!reason) return message.channel.send('Please include a reason.');
        var embed = new Discord.RichEmbed();
        embed.setAuthor(`Warning`, ` `)
        .setColor("#ECC31A")
        .setDescription(`${user.username}`, true)
        .setThumbnail(`${user.avatarURL}`)
        .setTimestamp()
        .addField('Guild In', `${message.guild.name}`,true)
        .addField('Reason', `${reason}`, true)
        user.sendEmbed(embed, {
                disableEveryone: true
        });
        message.channel.send(`***${user.username}*** ***Has been warned*** 👌`)
        var embed = new Discord.RichEmbed();
        embed.setAuthor(`Moderator`, ` `)
        .setColor("#ECC31A")
        .setDescription(`${message.author.username}`, true)
        .setThumbnail(`${user.avatarURL}`)
        .setTimestamp()
        .addField('User Warned',`${user.username}`, true)
        .addField('Reason', `${reason}`, true)
        message.guild.channels.find('name', 'mod-log').sendEmbed(embed, {
                disableEveryone: true
        });
};<commit_msg>fixing warn command<commit_after>const Discord = require("discord.js");
exports.run = (client, message, args) => {
        var reason = message.content.split(' ').slice(2).join(' ');
        var modlog = message.guild.channels.find('name', 'mod-log')
        var user = message.mentions.users.first();
        if (!user) return message.channel.send('Please include a user to warn.');
        if (!reason) return message.channel.send('Please include a reason.');
        var embed = new Discord.RichEmbed();
        embed.setAuthor('Selfbot | Warn', client.user.avatarURL)
        .addField("User:", `${user.tag}`, true)
        .addField('Reason:', reason || "No reason", true)
        .setTimestamp()
        .setColor("#D3AB14")
        message.user.sendEmbed(
          embed,
          { disableEveryone: true }
        );
        message.channel.send(`***${user.username}*** ***Has been warned*** 👌`)
        embed.setAuthor('Selfbot | Warn', client.user.avatarURL)
        .addField("User:", `${user.tag}`, true)
        .addField('Reason:', reason || "No reason", true)
        .setTimestamp()
        .setColor("#D3AB14")
        modlog.sendEmbed(
          embed,
          { disableEveryone: true }
        );
};
{'fraction_non_alphanumeric': 0.17819868573637418, 'fraction_numerical': 0.004638577502899111, 'mean_word_length': 2.574585635359116, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6225723', 'n_tokens_mistral': 773, 'n_tokens_neox': 766, 'n_words': 153}