<commit_before>var e = module.exports = {};

e.init = () => {
    e.category = bu.TagType.SIMPLE;
};

e.requireCtx = require;

e.isTag = true;
e.name = `delete`;
e.args = ``;
e.usage = `{delete}`;
e.desc = `Deletes the initiating command.`;
e.exampleIn = `The message that triggered this will be deleted. {delete}`;
e.exampleOut = `(the message got deleted idk how to do examples for this)`;

e.execute = async function(params) {
    for (let i = 1; i < params.args.length; i++) {
        params.args[i] = await bu.processTagInner(params, i);
    }
    let msg = params.msg;
    if (bu.commandMessages[msg.channel.guild.id]) {
        let index = bu.commandMessages[msg.channel.guild.id].indexOf(msg.id);
        if (index > -1) {
            bu.commandMessages[msg.guild.id].splice(index, 1);
        }
    }
    if (msg.delete) msg.delete();
    var replaceString = ``;
    var replaceContent = false;


    return {
        terminate: params.terminate,
        replaceString: replaceString,
        replaceContent: replaceContent
    };
};<commit_msg>definitely should error handle this<commit_after>var e = module.exports = {};

e.init = () => {
    e.category = bu.TagType.SIMPLE;
};

e.requireCtx = require;

e.isTag = true;
e.name = `delete`;
e.args = ``;
e.usage = `{delete}`;
e.desc = `Deletes the initiating command.`;
e.exampleIn = `The message that triggered this will be deleted. {delete}`;
e.exampleOut = `(the message got deleted idk how to do examples for this)`;

e.execute = async function(params) {
    for (let i = 1; i < params.args.length; i++) {
        params.args[i] = await bu.processTagInner(params, i);
    }
    let msg = params.msg;
    if (bu.commandMessages[msg.channel.guild.id]) {
        let index = bu.commandMessages[msg.channel.guild.id].indexOf(msg.id);
        if (index > -1) {
            bu.commandMessages[msg.guild.id].splice(index, 1);
        }
    }
    try {
        if (msg.delete) msg.delete();
    } catch (err) {

    }
    var replaceString = ``;
    var replaceContent = false;


    return {
        terminate: params.terminate,
        replaceString: replaceString,
        replaceContent: replaceContent
    };
};
{'fraction_non_alphanumeric': 0.14831874712114232, 'fraction_numerical': 0.0027637033625057578, 'mean_word_length': 2.712820512820513, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1624329', 'n_tokens_mistral': 734, 'n_tokens_neox': 724, 'n_words': 175}