<commit_before>const roles = require('../config/roles'),
    moment = require('moment');

exports.Event = function(bot) {
    this.bot = bot;
};

exports.run = (oldMember, newMember) => {
    const bot = this.bot;


    if(!bot.checkTrustedMember(oldMember) && bot.checkTrustedMember(newMember)){
        const joinedAt = moment(newMember.joinedAt);

        if(moment().diff(moment(joinedAt).add(7, 'days')) < 0) {
            newMember.removeRole(roles.trusted);
        }
    }
};

exports.config = {
    name: 'guildMemberUpdate',
    enabled: true
};<commit_msg>add trusted group after 3 days<commit_after>const roles = require('../config/roles'),
    moment = require('moment');

exports.Event = function(bot) {
    this.bot = bot;
};

exports.run = (oldMember, newMember) => {
    const bot = this.bot;


    if(!bot.checkTrustedMember(oldMember) && bot.checkTrustedMember(newMember)){
        const joinedAt = moment(newMember.joinedAt);

        if(moment().diff(moment(joinedAt).add(3, 'days')) < 0) {
            newMember.removeRole(roles.trusted);
        }
    }
};

exports.config = {
    name: 'guildMemberUpdate',
    enabled: true
};
{'fraction_non_alphanumeric': 0.16159860990443092, 'fraction_numerical': 0.004344048653344918, 'mean_word_length': 3.204379562043796, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6788771', 'n_tokens_mistral': 381, 'n_tokens_neox': 371, 'n_words': 63}